Alexandre Julliard : advapi32: Fixed last error check in RegSaveKey.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 10 05:44:04 CST 2006


Module: wine
Branch: master
Commit: 3d73173fe1cfe2ac72515691226ec8de5c6275bf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3d73173fe1cfe2ac72515691226ec8de5c6275bf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Nov 10 12:22:44 2006 +0100

advapi32: Fixed last error check in RegSaveKey.

---

 dlls/advapi32/registry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index 69717d8..20f6a7c 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -1980,7 +1980,7 @@ LONG WINAPI RegSaveKeyW( HKEY hkey, LPCW
         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)




More information about the wine-cvs mailing list