https://git.reactos.org/?p=reactos.git;a=commitdiff;h=acec69a1d7333dfc8b0a1…
commit acec69a1d7333dfc8b0a1e922196b29768ce0f9c
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Sun Jan 26 09:21:39 2020 -0600
Commit: Colin Finck <colin(a)reactos.org>
CommitDate: Sun Jan 26 16:21:39 2020 +0100
[PRINTING] Improve Stubs for GetPrinterA and GetPrinterDeviceA (#2274)
---
win32ss/printing/base/winspool/printers.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/win32ss/printing/base/winspool/printers.c
b/win32ss/printing/base/winspool/printers.c
index 28bce502020..3d029144d51 100644
--- a/win32ss/printing/base/winspool/printers.c
+++ b/win32ss/printing/base/winspool/printers.c
@@ -580,6 +580,7 @@ BOOL WINAPI
GetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD
pcbNeeded)
{
TRACE("GetPrinterA(%p, %lu, %p, %lu, %p)\n", hPrinter, Level, pPrinter,
cbBuf, pcbNeeded);
+ if(pcbNeeded) *pcbNeeded = 0;
return FALSE;
}
@@ -587,6 +588,7 @@ BOOL WINAPI
GetPrinterDriverA(HANDLE hPrinter, LPSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo,
DWORD cbBuf, LPDWORD pcbNeeded)
{
TRACE("GetPrinterDriverA(%p, %s, %lu, %p, %lu, %p)\n", hPrinter,
pEnvironment, Level, pDriverInfo, cbBuf, pcbNeeded);
+ if(pcbNeeded) *pcbNeeded = 0;
return FALSE;
}