winspool.drv: Write-strings warning fix.

This commit is contained in:
Andrew Talbot 2006-08-16 21:00:14 +01:00 committed by Alexandre Julliard
parent ed10b24e14
commit 8c56ffdde0
1 changed files with 2 additions and 1 deletions

View File

@ -1166,6 +1166,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
LPDEVMODEA pDevModeInput,DWORD fMode ) LPDEVMODEA pDevModeInput,DWORD fMode )
{ {
LPSTR lpName = pDeviceName; LPSTR lpName = pDeviceName;
static CHAR port[] = "LPT1:";
LONG ret; LONG ret;
TRACE("(%p,%p,%s,%p,%p,%ld)\n", TRACE("(%p,%p,%s,%p,%p,%ld)\n",
@ -1191,7 +1192,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
return -1; return -1;
} }
} }
ret = GDI_CallExtDeviceMode16(hWnd, pDevModeOutput, lpName, "LPT1:", ret = GDI_CallExtDeviceMode16(hWnd, pDevModeOutput, lpName, port,
pDevModeInput, NULL, fMode); pDevModeInput, NULL, fMode);
if(!pDeviceName) if(!pDeviceName)