wineps.drv: Use stricmp() instead of _strnicmp(..., -1).
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
55be879320
commit
e0dcc8df14
|
@ -169,7 +169,7 @@ BOOL PSDRV_SelectBuiltinFont(PHYSDEV dev, HFONT hfont,
|
|||
|
||||
/* Look for a matching font family */
|
||||
for(family = physDev->pi->Fonts; family; family = family->next) {
|
||||
if(!_strnicmp(FaceName, family->FamilyName, -1))
|
||||
if(!stricmp(FaceName, family->FamilyName))
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -94,8 +94,8 @@ HFONT CDECL PSDRV_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
|
|||
|
||||
for (i = 0; i < physDev->pi->FontSubTableSize; ++i)
|
||||
{
|
||||
if (!_strnicmp (FaceName,
|
||||
physDev->pi->FontSubTable[i].pValueName, -1))
|
||||
if (!stricmp (FaceName,
|
||||
physDev->pi->FontSubTable[i].pValueName))
|
||||
{
|
||||
TRACE ("substituting facename '%s' for '%s'\n",
|
||||
(LPSTR) physDev->pi->FontSubTable[i].pData, FaceName);
|
||||
|
|
|
@ -191,7 +191,7 @@ static void read_afms(FILE *f_c, FILE *f_h)
|
|||
int i, num_metrics;
|
||||
|
||||
cp = strrchr(de->d_name, '.'); /* Does it end in */
|
||||
if (cp == NULL || _strnicmp(cp, ".afm", -1) != 0) /* .afm or .AFM? */
|
||||
if (cp == NULL || stricmp(cp, ".afm") != 0) /* .afm or .AFM? */
|
||||
continue;
|
||||
|
||||
f = fopen(de->d_name, "r");
|
||||
|
|
|
@ -746,7 +746,7 @@ PPD *PSDRV_ParsePPD( const WCHAR *fname, HANDLE printer )
|
|||
}
|
||||
|
||||
else if(!strcmp("*ColorDevice", tuple.key)) {
|
||||
if(!_strnicmp(tuple.value, "true", -1))
|
||||
if(!stricmp(tuple.value, "true"))
|
||||
ppd->ColorDevice = CD_True;
|
||||
else
|
||||
ppd->ColorDevice = CD_False;
|
||||
|
@ -964,13 +964,13 @@ PPD *PSDRV_ParsePPD( const WCHAR *fname, HANDLE printer )
|
|||
}
|
||||
|
||||
else if(!strcmp("*TTRasterizer", tuple.key)) {
|
||||
if(!_strnicmp("None", tuple.value, -1))
|
||||
if(!stricmp("None", tuple.value))
|
||||
ppd->TTRasterizer = RO_None;
|
||||
else if(!_strnicmp("Accept68K", tuple.value, -1))
|
||||
else if(!stricmp("Accept68K", tuple.value))
|
||||
ppd->TTRasterizer = RO_Accept68K;
|
||||
else if(!_strnicmp("Type42", tuple.value, -1))
|
||||
else if(!stricmp("Type42", tuple.value))
|
||||
ppd->TTRasterizer = RO_Type42;
|
||||
else if(!_strnicmp("TrueImage", tuple.value, -1))
|
||||
else if(!stricmp("TrueImage", tuple.value))
|
||||
ppd->TTRasterizer = RO_TrueImage;
|
||||
else {
|
||||
FIXME("Unknown option %s for *TTRasterizer\n",
|
||||
|
@ -986,14 +986,14 @@ PPD *PSDRV_ParsePPD( const WCHAR *fname, HANDLE printer )
|
|||
duplex->Name = tuple.option;
|
||||
duplex->FullName = tuple.opttrans;
|
||||
duplex->InvocationString = tuple.value;
|
||||
if(!_strnicmp("None", tuple.option, -1) || !_strnicmp("False", tuple.option, -1)
|
||||
|| !_strnicmp("Simplex", tuple.option, -1))
|
||||
if(!stricmp("None", tuple.option) || !stricmp("False", tuple.option)
|
||||
|| !stricmp("Simplex", tuple.option))
|
||||
duplex->WinDuplex = DMDUP_SIMPLEX;
|
||||
else if(!_strnicmp("DuplexNoTumble", tuple.option, -1))
|
||||
else if(!stricmp("DuplexNoTumble", tuple.option))
|
||||
duplex->WinDuplex = DMDUP_VERTICAL;
|
||||
else if(!_strnicmp("DuplexTumble", tuple.option, -1))
|
||||
else if(!stricmp("DuplexTumble", tuple.option))
|
||||
duplex->WinDuplex = DMDUP_HORIZONTAL;
|
||||
else if(!_strnicmp("Notcapable", tuple.option, -1))
|
||||
else if(!stricmp("Notcapable", tuple.option))
|
||||
duplex->WinDuplex = 0;
|
||||
else {
|
||||
FIXME("Unknown option %s for *Duplex defaulting to simplex\n", tuple.option);
|
||||
|
|
|
@ -457,7 +457,7 @@ static BOOL ReadFixedPitch(FILE *file, CHAR buffer[], INT bufsize, AFM *afm,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
if (_strnicmp(sz, "false", -1) == 0)
|
||||
if (stricmp(sz, "false") == 0)
|
||||
{
|
||||
afm->IsFixedPitch = FALSE;
|
||||
*p_found = TRUE;
|
||||
|
@ -465,7 +465,7 @@ static BOOL ReadFixedPitch(FILE *file, CHAR buffer[], INT bufsize, AFM *afm,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
if (_strnicmp(sz, "true", -1) == 0)
|
||||
if (stricmp(sz, "true") == 0)
|
||||
{
|
||||
afm->IsFixedPitch = TRUE;
|
||||
*p_found = TRUE;
|
||||
|
|
Loading…
Reference in New Issue