From 5354417519d08cf2b10869f1d5edaf0723a4e110 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 26 Mar 2000 18:18:03 +0000 Subject: [PATCH] Fixed error checking in registry saving. --- dlls/advapi32/registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c index b8b17314915..f097f71ced9 100644 --- a/dlls/advapi32/registry.c +++ b/dlls/advapi32/registry.c @@ -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; -- 2.11.4.GIT