13 Oct
2008
13 Oct
'08
9: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