Call GetProcessHeap() instead of passing its address.

This commit is contained in:
Uwe Bonnes 2004-09-27 20:35:13 +00:00 committed by Alexandre Julliard
parent 535387aeb1
commit 17e22fba88
1 changed files with 1 additions and 1 deletions

View File

@ -948,7 +948,7 @@ static DWORD modLongData(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
*/
if (lpData[0] != 0xF0 || lpData[lpMidiHdr->dwBufferLength - 1] != 0xF7) {
WARN("Alledged system exclusive buffer is not correct\n\tPlease report with MIDI file\n");
lpNewData = HeapAlloc(GetProcessHeap, 0, lpMidiHdr->dwBufferLength + 2);
lpNewData = HeapAlloc(GetProcessHeap(), 0, lpMidiHdr->dwBufferLength + 2);
}
TRACE("dwBufferLength=%lu !\n", lpMidiHdr->dwBufferLength);