wineps.drv: Cast-qual warnings fix (1 of 3)
Andrew Talbot
Andrew.Talbot at talbotville.com
Sat Nov 18 12:29:48 CST 2006
Changelog:
wineps.drv: Cast-qual warnings fix.
diff -urN a/dlls/wineps.drv/escape.c b/dlls/wineps.drv/escape.c
--- a/dlls/wineps.drv/escape.c 2006-11-17 20:11:48.000000000 +0000
+++ b/dlls/wineps.drv/escape.c 2006-11-18 16:11:05.000000000 +0000
@@ -31,9 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
-static const char psbegindocument[] =
-"%%BeginDocument: Wine passthrough\n";
-
/**********************************************************************
* ExtEscape (WINEPS.@)
*/
@@ -252,8 +249,10 @@
* length of the string, rather than 2 more. So we'll use the WORD at
* in_data[0] instead.
*/
+ static CHAR psbegindocument[] = "%%BeginDocument: Wine passthrough\n";
+
if(!physDev->job.in_passthrough) {
- WriteSpool16(physDev->job.hJob, (LPSTR)psbegindocument, sizeof(psbegindocument)-1);
+ WriteSpool16(physDev->job.hJob, psbegindocument, sizeof(psbegindocument)-1);
physDev->job.in_passthrough = TRUE;
}
return WriteSpool16(physDev->job.hJob,((char*)in_data)+2,*(const WORD*)in_data);
More information about the wine-patches
mailing list