Commit 7562292c authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

user32: Use SecureZeroMemory to clear magic fields.

parent 0e967a5c
...@@ -2113,7 +2113,8 @@ void WDML_RemoveConv(WDML_CONV* pRef, WDML_SIDE side) ...@@ -2113,7 +2113,8 @@ void WDML_RemoveConv(WDML_CONV* pRef, WDML_SIDE side)
{ {
pPrev->next = pCurrent->next; pPrev->next = pCurrent->next;
} }
pCurrent->magic = 0; /* Ensure compiler doesn't optimize out the assignment with 0. */
SecureZeroMemory(&pCurrent->magic, sizeof(pCurrent->magic));
HeapFree(GetProcessHeap(), 0, pCurrent); HeapFree(GetProcessHeap(), 0, pCurrent);
break; break;
} }
......
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