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
5c15cf5f
Commit
5c15cf5f
authored
Apr 29, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: info->state.next is always NULL, there is no need to save/restore it.
parent
6ff4ba7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
enhmetafile.c
dlls/gdi32/enhmetafile.c
+2
-5
No files found.
dlls/gdi32/enhmetafile.c
View file @
5c15cf5f
...
@@ -557,11 +557,7 @@ static void EMF_RestoreDC( enum_emh_data *info, INT level )
...
@@ -557,11 +557,7 @@ static void EMF_RestoreDC( enum_emh_data *info, INT level )
info
->
saved_state
=
state
->
next
;
info
->
saved_state
=
state
->
next
;
state
->
next
=
NULL
;
state
->
next
=
NULL
;
if
(
--
info
->
save_level
<
level
)
if
(
--
info
->
save_level
<
level
)
{
EMF_dc_state
*
next
=
info
->
state
.
next
;
info
->
state
=
*
state
;
info
->
state
=
*
state
;
info
->
state
.
next
=
next
;
}
HeapFree
(
GetProcessHeap
(),
0
,
state
);
HeapFree
(
GetProcessHeap
(),
0
,
state
);
}
}
}
}
...
@@ -2279,7 +2275,7 @@ BOOL WINAPI EnumEnhMetaFile(
...
@@ -2279,7 +2275,7 @@ BOOL WINAPI EnumEnhMetaFile(
return
FALSE
;
return
FALSE
;
}
}
info
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
enum_emh_data
)
+
sizeof
(
HANDLETABLE
)
*
emh
->
nHandles
);
sizeof
(
enum_emh_data
)
+
sizeof
(
HANDLETABLE
)
*
emh
->
nHandles
);
if
(
!
info
)
if
(
!
info
)
{
{
...
@@ -2298,6 +2294,7 @@ BOOL WINAPI EnumEnhMetaFile(
...
@@ -2298,6 +2294,7 @@ BOOL WINAPI EnumEnhMetaFile(
info
->
state
.
world_transform
.
eM12
=
info
->
state
.
world_transform
.
eM21
=
0
;
info
->
state
.
world_transform
.
eM12
=
info
->
state
.
world_transform
.
eM21
=
0
;
info
->
state
.
world_transform
.
eDx
=
info
->
state
.
world_transform
.
eDy
=
0
;
info
->
state
.
world_transform
.
eDx
=
info
->
state
.
world_transform
.
eDy
=
0
;
info
->
state
.
next
=
NULL
;
info
->
save_level
=
0
;
info
->
save_level
=
0
;
info
->
saved_state
=
NULL
;
info
->
saved_state
=
NULL
;
...
...
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