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
7b2c27aa
Commit
7b2c27aa
authored
Oct 29, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Cast-qual warnings fix.
parent
3ac7720f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
env.c
dlls/gdi32/env.c
+7
-6
No files found.
dlls/gdi32/env.c
View file @
7b2c27aa
...
@@ -114,7 +114,8 @@ INT16 WINAPI SetEnvironment16(LPCSTR lpPortName, LPDEVMODEA lpdev, UINT16 nCount
...
@@ -114,7 +114,8 @@ INT16 WINAPI SetEnvironment16(LPCSTR lpPortName, LPDEVMODEA lpdev, UINT16 nCount
{
{
ATOM
atom
;
ATOM
atom
;
BOOL16
nullport
=
FALSE
;
BOOL16
nullport
=
FALSE
;
LPSTR
p
;
LPCSTR
port_name
;
LPSTR
device_mode
;
ENVTABLE
*
env
;
ENVTABLE
*
env
;
HGLOBAL16
handle
;
HGLOBAL16
handle
;
...
@@ -131,20 +132,20 @@ INT16 WINAPI SetEnvironment16(LPCSTR lpPortName, LPDEVMODEA lpdev, UINT16 nCount
...
@@ -131,20 +132,20 @@ INT16 WINAPI SetEnvironment16(LPCSTR lpPortName, LPDEVMODEA lpdev, UINT16 nCount
}
}
if
(
nCount
)
{
/* store DEVMODE struct */
if
(
nCount
)
{
/* store DEVMODE struct */
if
(
nullport
)
if
(
nullport
)
p
=
(
LPSTR
)
lpdev
;
p
ort_name
=
(
LPSTR
)
lpdev
;
else
else
p
=
(
LPSTR
)
lpPortName
;
p
ort_name
=
lpPortName
;
if
((
atom
=
PortNameToAtom
(
p
,
TRUE
))
if
((
atom
=
PortNameToAtom
(
p
ort_name
,
TRUE
))
&&
(
env
=
SearchEnvTable
(
0
))
&&
(
env
=
SearchEnvTable
(
0
))
&&
(
handle
=
GlobalAlloc16
(
GMEM_SHARE
|
GMEM_MOVEABLE
,
nCount
)))
{
&&
(
handle
=
GlobalAlloc16
(
GMEM_SHARE
|
GMEM_MOVEABLE
,
nCount
)))
{
if
(
!
(
p
=
GlobalLock16
(
handle
)))
{
if
(
!
(
device_mode
=
GlobalLock16
(
handle
)))
{
GlobalFree16
(
handle
);
GlobalFree16
(
handle
);
return
0
;
return
0
;
}
}
env
->
atom
=
atom
;
env
->
atom
=
atom
;
env
->
handle
=
handle
;
env
->
handle
=
handle
;
memcpy
(
p
,
lpdev
,
nCount
);
memcpy
(
device_mode
,
lpdev
,
nCount
);
GlobalUnlock16
(
handle
);
GlobalUnlock16
(
handle
);
return
handle
;
return
handle
;
}
}
...
...
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