[WINPRINT]
authorColin Finck <colin@reactos.org>
Wed, 15 Jul 2015 15:53:04 +0000 (15:53 +0000)
committerColin Finck <colin@reactos.org>
Wed, 15 Jul 2015 15:53:04 +0000 (15:53 +0000)
Bugfix: The Printer Name with Port is given through the parameter pPrinterName, not the pPrinterName field of the pPrintProcessorOpenData structure.

svn path=/branches/colins-printing-for-freedom/; revision=68401

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

index 6169f4f..cee4614 100644 (file)
@@ -219,7 +219,7 @@ OpenPrintProcessor(PWSTR pPrinterName, PPRINTPROCESSOROPENDATA pPrintProcessorOp
     pHandle->pwszDatatype = AllocSplStr(pPrintProcessorOpenData->pDatatype);
     pHandle->pwszDocumentName = AllocSplStr(pPrintProcessorOpenData->pDocumentName);
     pHandle->pwszOutputFile = AllocSplStr(pPrintProcessorOpenData->pOutputFile);
-    pHandle->pwszPrinterPort = AllocSplStr(pPrintProcessorOpenData->pPrinterName);
+    pHandle->pwszPrinterPort = AllocSplStr(pPrinterName);
 
     // We were successful! Return the handle and don't let the cleanup routine free it.
     dwErrorCode = ERROR_SUCCESS;