winecfg: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call.

This commit is contained in:
Michael Stefaniuc 2007-12-07 01:14:13 +01:00 committed by Alexandre Julliard
parent 195356c098
commit d35e57732e
1 changed files with 2 additions and 4 deletions

View File

@ -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 */