Skip to content
Snippets Groups Projects
Commit 53544175 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

Fixed error checking in registry saving.

parent e7c6f506
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment