winspool.drv: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ce07ba6c2c
commit
4c106a9319
|
@ -1194,14 +1194,14 @@ static BOOL PRINTCAP_ParseEntry( const char *pent, BOOL isfirst )
|
||||||
e = s;
|
e = s;
|
||||||
while(isspace(*--e)) *e = '\0';
|
while(isspace(*--e)) *e = '\0';
|
||||||
TRACE("\t%s\n", debugstr_a(prettyname));
|
TRACE("\t%s\n", debugstr_a(prettyname));
|
||||||
if(env_default && !strcasecmp(prettyname, env_default)) set_default = TRUE;
|
if(env_default && !_strnicmp(prettyname, env_default, -1)) set_default = TRUE;
|
||||||
for(prettyname = s+1; isspace(*prettyname); prettyname++)
|
for(prettyname = s+1; isspace(*prettyname); prettyname++)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
e = prettyname + strlen(prettyname);
|
e = prettyname + strlen(prettyname);
|
||||||
while(isspace(*--e)) *e = '\0';
|
while(isspace(*--e)) *e = '\0';
|
||||||
TRACE("\t%s\n", debugstr_a(prettyname));
|
TRACE("\t%s\n", debugstr_a(prettyname));
|
||||||
if(env_default && !strcasecmp(prettyname, env_default)) set_default = TRUE;
|
if(env_default && !_strnicmp(prettyname, env_default, -1)) set_default = TRUE;
|
||||||
|
|
||||||
/* prettyname must fit into the dmDeviceName member of DEVMODE struct,
|
/* prettyname must fit into the dmDeviceName member of DEVMODE struct,
|
||||||
* if it is too long, we use it as comment below. */
|
* if it is too long, we use it as comment below. */
|
||||||
|
|
Loading…
Reference in New Issue