[Wine-patches] [eter-2.1] wineps.drv: Internal DEVMODE is in unicode format, so use GetJobW/SetJobW. (eterbug #9279)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Ср Май 15 14:14:54 MSK 2013


---
 dlls/wineps.drv/escape.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wineps.drv/escape.c b/dlls/wineps.drv/escape.c
index 903f756..dce5144 100644
--- a/dlls/wineps.drv/escape.c
+++ b/dlls/wineps.drv/escape.c
@@ -478,17 +478,17 @@ INT PSDRV_StartDoc( PHYSDEV dev, const DOCINFOW *doc )
  */
 static void save_devmode(PSDRV_PDEVICE *physDev)
 {
-    JOB_INFO_2A *ji2 = NULL;
+    JOB_INFO_2W *ji2 = NULL;
     DWORD needed;
     HANDLE hPrinter = physDev->job.hprinter;
     DWORD JobId = physDev->job.id;
 
-    GetJobA(hPrinter, JobId, 2, NULL, 0, &needed);
+    GetJobW(hPrinter, JobId, 2, NULL, 0, &needed);
     ji2 = HeapAlloc(GetProcessHeap(), 0, needed);
-    GetJobA(hPrinter, JobId, 2, (LPBYTE)ji2, needed, &needed);
+    GetJobW(hPrinter, JobId, 2, (LPBYTE)ji2, needed, &needed);
 
     ji2->pDevMode = &(physDev->Devmode->dmPublic);
-    SetJobA(hPrinter, JobId, 2, (LPBYTE)ji2, 0);
+    SetJobW(hPrinter, JobId, 2, (LPBYTE)ji2, 0);
     HeapFree(GetProcessHeap(), 0, ji2);
 }
 
-- 
1.8.2.3



Подробная информация о списке рассылки Wine-patches