Fixed error checking in registry saving.

This commit is contained in:
Alexandre Julliard 2000-03-26 18:18:03 +00:00
parent e7c6f50626
commit 5354417519
1 changed files with 1 additions and 1 deletions

View File

@ -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;