Jeremy White : wineps.drv: Prevent psdrv tracing from crashing on Solaris.
Module: wine Branch: master Commit: b8fbf9a1c2cbecce4032fdc9320c96da3b1263d1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b8fbf9a1c2cbecce4032fdc932... Author: Jeremy White <jwhite(a)winehq.org> Date: Fri Feb 12 13:50:50 2010 -0600 wineps.drv: Prevent psdrv tracing from crashing on Solaris. --- dlls/wineps.drv/driver.c | 2 +- dlls/wineps.drv/ppd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wineps.drv/driver.c b/dlls/wineps.drv/driver.c index fa07775..25cf0eb 100644 --- a/dlls/wineps.drv/driver.c +++ b/dlls/wineps.drv/driver.c @@ -327,7 +327,7 @@ INT CDECL PSDRV_ExtDeviceMode(LPSTR lpszDriver, HWND hwnd, LPDEVMODEA lpdmOutput if(!pi) return -1; TRACE("(Driver=%s, hwnd=%p, devOut=%p, Device='%s', Port='%s', devIn=%p, Profile='%s', Mode=%04x)\n", - lpszDriver, hwnd, lpdmOutput, lpszDevice, lpszPort, lpdmInput, lpszProfile, dwMode); + lpszDriver, hwnd, lpdmOutput, lpszDevice, lpszPort, lpdmInput, debugstr_a(lpszProfile), dwMode); /* If dwMode == 0, return size of DEVMODE structure */ if(!dwMode) diff --git a/dlls/wineps.drv/ppd.c b/dlls/wineps.drv/ppd.c index e29bbc9..c2c422d 100644 --- a/dlls/wineps.drv/ppd.c +++ b/dlls/wineps.drv/ppd.c @@ -1015,8 +1015,8 @@ PPD *PSDRV_ParsePPD(char *fname) for(slot = ppd->InputSlots; slot; slot = slot->next) TRACE("INPUTSLOTS '%s' Name '%s' (%d) Invocation '%s'\n", - slot->Name, slot->FullName, slot->WinBin, - slot->InvocationString); + debugstr_a(slot->Name), slot->FullName, slot->WinBin, + debugstr_a(slot->InvocationString)); } fclose(fp);
participants (1)
-
Alexandre Julliard