On Mon, Oct 13, 2008 at 2:42 PM, Andrey Turkin <[EMAIL PROTECTED]> 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