[WINPRINT]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 20 Feb 2017 12:00:13 +0000 (12:00 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 20 Feb 2017 12:00:13 +0000 (12:00 +0000)
- Avoid uninitialized hPrintMonitor in PrintRawJob failure case. Patch by Víctor Martínez Calvo
CORE-12792 #resolve

svn path=/trunk/; revision=73857

reactos/win32ss/printing/processors/winprint/raw.c

index 3be598b..5e79108 100644 (file)
@@ -31,7 +31,7 @@ PrintRawJob(PWINPRINT_HANDLE pHandle, PWSTR pwszPrinterAndJob)
     DWORD cbWritten;
     DWORD dwErrorCode;
     HANDLE hPrintJob;
     DWORD cbWritten;
     DWORD dwErrorCode;
     HANDLE hPrintJob;
-    HANDLE hPrintMonitor;
+    HANDLE hPrintMonitor = NULL;
     PBYTE pBuffer = NULL;
 
     // Open the spooled job to read from it.
     PBYTE pBuffer = NULL;
 
     // Open the spooled job to read from it.