Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e0dcc8df
Commit
e0dcc8df
authored
Mar 27, 2020
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Use stricmp() instead of _strnicmp(..., -1).
Signed-off-by:
Paul Gofman
<
gofmanp@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55be8793
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
builtin.c
dlls/wineps.drv/builtin.c
+1
-1
font.c
dlls/wineps.drv/font.c
+2
-2
mkagl.c
dlls/wineps.drv/mkagl.c
+1
-1
ppd.c
dlls/wineps.drv/ppd.c
+10
-10
type1afm.c
dlls/wineps.drv/type1afm.c
+2
-2
No files found.
dlls/wineps.drv/builtin.c
View file @
e0dcc8df
...
...
@@ -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
;
}
...
...
dlls/wineps.drv/font.c
View file @
e0dcc8df
...
...
@@ -94,8 +94,8 @@ HFONT CDECL PSDRV_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
for
(
i
=
0
;
i
<
physDev
->
pi
->
FontSubTableSize
;
++
i
)
{
if
(
!
_strn
icmp
(
FaceName
,
physDev
->
pi
->
FontSubTable
[
i
].
pValueName
,
-
1
))
if
(
!
str
icmp
(
FaceName
,
physDev
->
pi
->
FontSubTable
[
i
].
pValueName
))
{
TRACE
(
"substituting facename '%s' for '%s'
\n
"
,
(
LPSTR
)
physDev
->
pi
->
FontSubTable
[
i
].
pData
,
FaceName
);
...
...
dlls/wineps.drv/mkagl.c
View file @
e0dcc8df
...
...
@@ -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"
);
...
...
dlls/wineps.drv/ppd.c
View file @
e0dcc8df
...
...
@@ -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
);
...
...
dlls/wineps.drv/type1afm.c
View file @
e0dcc8df
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment