mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
user32: Use SecureZeroMemory to clear magic fields.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
0e967a5cec
commit
7562292cea
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue