Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7ee2f771
Commit
7ee2f771
authored
Sep 14, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi: Cast-qual warnings fix.
parent
51857503
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
font.c
dlls/gdi/font.c
+3
-3
printdrv.c
dlls/gdi/printdrv.c
+2
-2
No files found.
dlls/gdi/font.c
View file @
7ee2f771
...
...
@@ -245,7 +245,7 @@ static void FONT_LogFontWToA( const LOGFONTW *fontW, LPLOGFONTA fontA )
static
void
FONT_EnumLogFontExWTo16
(
const
ENUMLOGFONTEXW
*
fontW
,
LPENUMLOGFONTEX16
font16
)
{
FONT_LogFontWTo16
(
(
LPLOGFONTW
)
fontW
,
(
LPLOGFONT16
)
font16
);
FONT_LogFontWTo16
(
(
const
LOGFONTW
*
)
fontW
,
(
LPLOGFONT16
)
font16
);
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfFullName
,
-
1
,
(
LPSTR
)
font16
->
elfFullName
,
LF_FULLFACESIZE
,
NULL
,
NULL
);
...
...
@@ -260,7 +260,7 @@ static void FONT_EnumLogFontExWTo16( const ENUMLOGFONTEXW *fontW, LPENUMLOGFONTE
static
void
FONT_EnumLogFontExWToA
(
const
ENUMLOGFONTEXW
*
fontW
,
LPENUMLOGFONTEXA
fontA
)
{
FONT_LogFontWToA
(
(
LPLOGFONTW
)
fontW
,
(
LPLOGFONTA
)
fontA
);
FONT_LogFontWToA
(
(
const
LOGFONTW
*
)
fontW
,
(
LPLOGFONTA
)
fontA
);
WideCharToMultiByte
(
CP_ACP
,
0
,
fontW
->
elfFullName
,
-
1
,
(
LPSTR
)
fontA
->
elfFullName
,
LF_FULLFACESIZE
,
NULL
,
NULL
);
...
...
@@ -332,7 +332,7 @@ static void FONT_NewTextMetricExWTo16(const NEWTEXTMETRICEXW *ptmW, LPNEWTEXTMET
static
void
FONT_NewTextMetricExWToA
(
const
NEWTEXTMETRICEXW
*
ptmW
,
NEWTEXTMETRICEXA
*
ptmA
)
{
FONT_TextMetricWToA
((
LPTEXTMETRICW
)
ptmW
,
(
LPTEXTMETRICA
)
ptmA
);
FONT_TextMetricWToA
((
const
TEXTMETRICW
*
)
ptmW
,
(
LPTEXTMETRICA
)
ptmA
);
ptmA
->
ntmTm
.
ntmFlags
=
ptmW
->
ntmTm
.
ntmFlags
;
ptmA
->
ntmTm
.
ntmSizeEM
=
ptmW
->
ntmTm
.
ntmSizeEM
;
ptmA
->
ntmTm
.
ntmCellHeight
=
ptmW
->
ntmTm
.
ntmCellHeight
;
...
...
dlls/gdi/printdrv.c
View file @
7ee2f771
...
...
@@ -452,7 +452,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
{
int
fd
=-
1
;
char
psCmd
[
1024
];
char
*
psCmdP
=
psCmd
;
c
onst
c
har
*
psCmdP
=
psCmd
;
HKEY
hkey
;
/* TTD convert the 'output device' into a spool file name */
...
...
@@ -474,7 +474,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
TRACE
(
"Got printerSpoolCommand '%s' for output device '%s'
\n
"
,
psCmd
,
pszOutput
);
if
(
!*
psCmd
)
psCmdP
=
(
char
*
)
pszOutput
;
psCmdP
=
pszOutput
;
else
{
while
(
*
psCmdP
&&
isspace
(
*
psCmdP
))
...
...
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