https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9d189469196409222a89f…
commit 9d189469196409222a89f2ed028a5054f917d3be
Author: James Tabor <james.tabor(a)reactos.org>
AuthorDate: Mon Aug 3 22:23:07 2020 -0500
Commit: James Tabor <james.tabor(a)reactos.org>
CommitDate: Mon Aug 3 22:23:07 2020 -0500
[WinSpool] Fix MSVC Build
Fix build.
---
win32ss/printing/base/winspool/ports.c | 2 ++
win32ss/printing/base/winspool/printers.c | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/win32ss/printing/base/winspool/ports.c
b/win32ss/printing/base/winspool/ports.c
index 80854ab23cf..6444bf0a7f0 100644
--- a/win32ss/printing/base/winspool/ports.c
+++ b/win32ss/printing/base/winspool/ports.c
@@ -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 )
diff --git a/win32ss/printing/base/winspool/printers.c
b/win32ss/printing/base/winspool/printers.c
index 12c299ade01..f88948f2efa 100644
--- a/win32ss/printing/base/winspool/printers.c
+++ b/win32ss/printing/base/winspool/printers.c
@@ -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;