diff --git a/dlls/winspool/info.c b/dlls/winspool/info.c index 10aaa9b962d..622b9fb353b 100644 --- a/dlls/winspool/info.c +++ b/dlls/winspool/info.c @@ -678,7 +678,7 @@ static HKEY WINSPOOL_OpenDriverReg( LPVOID pEnvironment, BOOL unicode) TRACE("%s\n", lpKey); - if(RegCreateKeyA(HKEY_LOCAL_MACHINE, Drivers, &retval) != + if(RegCreateKeyA(HKEY_LOCAL_MACHINE, lpKey, &retval) != ERROR_SUCCESS) retval = NULL;