Commit 40251bff authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wininet: Use SecureZeroMemory() to clear magic fields.

parent 8c259abb
...@@ -3630,7 +3630,8 @@ BOOL WINAPI FindCloseUrlCache(HANDLE hEnumHandle) ...@@ -3630,7 +3630,8 @@ BOOL WINAPI FindCloseUrlCache(HANDLE hEnumHandle)
return FALSE; return FALSE;
} }
pEntryHandle->magic = 0; /* Ensure compiler doesn't optimize out the assignment with 0. */
SecureZeroMemory(&pEntryHandle->magic, sizeof(pEntryHandle->magic));
free(pEntryHandle->url_search_pattern); free(pEntryHandle->url_search_pattern);
free(pEntryHandle); free(pEntryHandle);
return TRUE; return TRUE;
......
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