- Fix error return of EnumPrinterKeyA/W, spotted by janderwald
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 18 Oct 2009 14:04:59 +0000 (14:04 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 18 Oct 2009 14:04:59 +0000 (14:04 +0000)
svn path=/trunk/; revision=43551

reactos/dll/win32/winspool/stubs.c

index b0ab91e..ef2e055 100644 (file)
@@ -814,7 +814,7 @@ EnumPrinterKeyA(HANDLE Printer, LPSTR KeyName, LPTSTR Subkey, DWORD SubkeySize,
 
   *SubkeyReturned = 0;
 
-  return 0;
+  return ERROR_FILE_NOT_FOUND;
 }
 
 /*
@@ -829,7 +829,7 @@ EnumPrinterKeyW(HANDLE Printer, LPWSTR KeyName, LPTSTR Subkey, DWORD SubkeySize,
 
   *SubkeyReturned = 0;
 
-  return 0;
+  return ERROR_FILE_NOT_FOUND;
 }
 
 /*