From 256570098e350d7424424a9ba01757f5b16966c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Tue, 2 Mar 2010 23:17:32 +0000 Subject: [PATCH] Small fix for the Form Handle creating patch. --- GUI/MainForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 1f9e361..f9bc875 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -158,8 +158,8 @@ namespace OpenHardwareMonitor.GUI { Show(); } - // Create a handle, otherwise calling Close() does not fire FormClosed - CreateHandle(); + // Create a handle, otherwise calling Close() does not fire FormClosed + IntPtr handle = Handle; } private void SubHardwareAdded(IHardware hardware, Node node) {