Commit 5c15cf5f authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32: info->state.next is always NULL, there is no need to save/restore it.

parent 6ff4ba7e
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment