Fixed error checking in registry saving.

diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index b8b1731..f097f71 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -1061,7 +1061,7 @@
         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;