winecfg: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call.
This commit is contained in:
parent
195356c098
commit
d35e57732e
|
@ -541,10 +541,8 @@ static void findAudioDrivers(void)
|
|||
if (numFound) {
|
||||
loadedAudioDrv = HeapReAlloc(GetProcessHeap(), 0, loadedAudioDrv, (numFound + 1) * sizeof(AUDIO_DRIVER));
|
||||
CopyMemory(&loadedAudioDrv[numFound], pAudioDrv, sizeof(AUDIO_DRIVER));
|
||||
} else {
|
||||
loadedAudioDrv = HeapAlloc(GetProcessHeap(), 0, sizeof(AUDIO_DRIVER));
|
||||
ZeroMemory(&loadedAudioDrv[0], sizeof(AUDIO_DRIVER));
|
||||
}
|
||||
} else
|
||||
loadedAudioDrv = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(AUDIO_DRIVER));
|
||||
}
|
||||
|
||||
/* check local copy of registry string for unloadable drivers */
|
||||
|
|
Loading…
Reference in New Issue