[WinSpool] Fix MSVC Build

Fix build.
This commit is contained in:
James Tabor 2020-08-03 22:23:07 -05:00
parent b4848c379f
commit 9d18946919
2 changed files with 4 additions and 2 deletions

View file

@ -519,6 +519,8 @@ SetPortA(PSTR pName, PSTR pPortName, DWORD dwLevel, PBYTE pPortInfo)
DWORD len;
BOOL res;
pi3A = (PORT_INFO_3A*)pPortInfo;
TRACE("SetPortA(%s, %s, %lu, %p)\n", pName, pPortName, dwLevel, pPortInfo);
if ( dwLevel != 3 )

View file

@ -3132,7 +3132,7 @@ SetPrinterA(HANDLE hPrinter, DWORD Level, PBYTE pPrinter, DWORD Command)
{
// Set the pPrinter parameter to a pointer to a DWORD value that specifies the new printer status.
PRINTER_INFO_6 pi6;
pi6.dwStatus = (DWORD)pPrinter;
pi6.dwStatus = (DWORD_PTR)pPrinter;
pPrinter = (LPBYTE)&pi6;
Level = 6;
Command = 0;
@ -3288,7 +3288,7 @@ SetPrinterW(HANDLE hPrinter, DWORD Level, PBYTE pPrinter, DWORD Command)
{
// Set the pPrinter parameter to a pointer to a DWORD value that specifies the new printer status.
PRINTER_INFO_6 pi6;
pi6.dwStatus = (DWORD)pPrinter;
pi6.dwStatus = (DWORD_PTR)pPrinter;
pPrinter = (LPBYTE)&pi6;
Level = 6;
Command = 0;