Re: [try2] wordpad: do not try to close uninitialized handles
13 Oct
2008
13 Oct
'08
8:04 p.m.
On Mon, Oct 13, 2008 at 2:42 PM, Andrey Turkin <andrey.turkin(a)gmail.com> wrote:
[another approach with smaller changeset, as James suggested]
Fix some functions where CloseHandle was called not matter if previous open succeeded or not.
@@ -96,12 +96,13 @@ void registry_set_options(HWND hMainWnd) registry_set_pagemargins(hKey); } - RegCloseKey(hKey); + if (hKey) + RegCloseKey(hKey); Please get rid of this check for NULL hKey. We've spent a lot of time removing such checks. -- James Hawkins
6360
Age (days ago)
6360
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Hawkins