Author: cfinck
Date: Fri Jul 17 15:11:34 2015
New Revision: 68414
URL:
http://svn.reactos.org/svn/reactos?rev=68414&view=rev
Log:
[WINSPOOL]
Bugfix: hPrinter is a PSPOOLER_HANDLE for all winspool functions. The hPrinter member of a
SPOOLER_HANDLE is only passed to RPC calls.
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/base/winspool/printers.c [iso-8859-1]
Fri Jul 17 15:11:34 2015
@@ -63,7 +63,7 @@
}
// Get the size of the job information.
- GetJobW(pHandle->hPrinter, pAddJobInfo1->JobId, 1, NULL, 0, &cbNeeded);
+ GetJobW((HANDLE)pHandle, pAddJobInfo1->JobId, 1, NULL, 0, &cbNeeded);
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER)
{
dwErrorCode = GetLastError();
@@ -81,7 +81,7 @@
}
// Get the job information.
- if (!GetJobW(pHandle->hPrinter, pAddJobInfo1->JobId, 1, (PBYTE)pJobInfo1,
cbNeeded, &cbNeeded))
+ if (!GetJobW((HANDLE)pHandle, pAddJobInfo1->JobId, 1, (PBYTE)pJobInfo1, cbNeeded,
&cbNeeded))
{
dwErrorCode = GetLastError();
ERR("GetJobW failed with error %lu!\n", dwErrorCode);
@@ -93,7 +93,7 @@
pJobInfo1->pDocument = pDocInfo1->pDocName;
// Set the new job information.
- if (!SetJobW(pHandle->hPrinter, pAddJobInfo1->JobId, 1, (PBYTE)pJobInfo1, 0))
+ if (!SetJobW((HANDLE)pHandle, pAddJobInfo1->JobId, 1, (PBYTE)pJobInfo1, 0))
{
dwErrorCode = GetLastError();
ERR("SetJobW failed with error %lu!\n", dwErrorCode);
@@ -568,7 +568,7 @@
// Try to add a new job.
// This only succeeds if the printer is set to do spooled printing.
- if (AddJobW(pHandle->hPrinter, 1, (PBYTE)pAddJobInfo1, cbAddJobInfo1,
&cbNeeded))
+ if (AddJobW((HANDLE)pHandle, 1, (PBYTE)pAddJobInfo1, cbAddJobInfo1,
&cbNeeded))
{
// Do spooled printing.
dwErrorCode = _StartDocPrinterSpooled(pHandle, pDocInfo1, pAddJobInfo1);