winspool.drv: De-constify a variable
Andrew Talbot
andrew.talbot at talbotville.com
Mon Aug 22 15:47:03 CDT 2011
Changelog:
winspool.drv: De-constify a variable.
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 5201e30..f1220da 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -514,13 +514,14 @@ static BOOL CUPS_LoadPrinters(void)
#endif
static BOOL
-PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) {
+PRINTCAP_ParseEntry(char *pent, BOOL isfirst) {
PRINTER_INFO_2A pinfo2a;
char *e,*s,*name,*prettyname,*devname;
BOOL ret = FALSE, set_default = FALSE;
char *port = NULL, *env_default;
HKEY hkeyPrinter, hkeyPrinters;
WCHAR devnameW[MAX_PATH];
+ static CHAR empty[] = "";
while (isspace(*pent)) pent++;
s = strchr(pent,':');
@@ -531,7 +532,7 @@ PRINTCAP_ParseEntry(const char *pent, BOOL isfirst) {
*s=':';
pent = s;
} else
- pent = "";
+ pent = empty;
TRACE("name=%s entry=%s\n",name, pent);
More information about the wine-patches
mailing list