Commit 53544175 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed error checking in registry saving.

parent e7c6f506
......@@ -1061,7 +1061,7 @@ LONG WINAPI RegSaveKeyA( HKEY hkey, LPCSTR file, LPSECURITY_ATTRIBUTES sa )
handle = CreateFileA( buffer, GENERIC_WRITE, 0, NULL,
CREATE_NEW, FILE_ATTRIBUTE_NORMAL, -1 );
if (handle != INVALID_HANDLE_VALUE) break;
if ((ret = GetLastError()) != ERROR_FILE_EXISTS) goto done;
if ((ret = GetLastError()) != ERROR_ALREADY_EXISTS) goto done;
}
req->hkey = hkey;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment