advapi32: Fixed last error check in RegSaveKey.

This commit is contained in:
Alexandre Julliard 2006-11-10 12:22:44 +01:00
parent 110a6fe5b6
commit 3d73173fe1
1 changed files with 1 additions and 1 deletions

View File

@ -1980,7 +1980,7 @@ LONG WINAPI RegSaveKeyW( HKEY hkey, LPCWSTR file, LPSECURITY_ATTRIBUTES sa )
handle = CreateFileW( buffer, GENERIC_WRITE, 0, NULL,
CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0 );
if (handle != INVALID_HANDLE_VALUE) break;
if ((ret = GetLastError()) != ERROR_ALREADY_EXISTS) goto done;
if ((ret = GetLastError()) != ERROR_FILE_EXISTS) goto done;
/* Something gone haywire ? Please report if this happens abnormally */
if (count >= 100)