Skip to content
Snippets Groups Projects
Commit 8975ad6e authored by Pierre Schweitzer's avatar Pierre Schweitzer Committed by Alexandre Julliard
Browse files

winecoreaudio.drv: Fix handle leak.

parent 747a26d9
Branches
Tags
No related merge requests found
......@@ -128,7 +128,7 @@ LONG CoreAudio_MIDIInit(void)
InitializeCriticalSection(&midiInLock);
midiInLock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": midiInLock");
MIDIInThreadPortName = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("MIDIInThreadPortName.%u"), getpid());
CreateThread(NULL, 0, MIDIIn_MessageThread, NULL, 0, NULL);
CloseHandle( CreateThread(NULL, 0, MIDIIn_MessageThread, NULL, 0, NULL));
name = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("WineInputPort.%u"), getpid());
MIDIInputPortCreate(wineMIDIClient, name, MIDIIn_ReadProc, NULL, &MIDIInPort);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment