Fixed a bunch of uninitialized variable warnings. Dereferencing random pointers can't be a good idea, testing would've been great. The changes may not be correct, please review!

svn path=/trunk/; revision=19464
This commit is contained in:
Thomas Bluemel 2005-11-22 11:20:01 +00:00
parent 3143bf613e
commit e0535fe8a9

View file

@ -79,8 +79,8 @@ MMRESULT GetDeviceCapabilities(DWORD ID, UINT DeviceType,
static DWORD waveThread(LPVOID lpParameter)
{
PWAVEALLOC pClient;
BOOL Terminate;
PWAVEALLOC pClient = (PWAVEALLOC)lpParameter;
BOOL Terminate = FALSE;
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
SetEvent(pClient->AuxEvent2);
@ -305,7 +305,7 @@ static DWORD waveThread(LPVOID lpParameter)
static MMRESULT waveReadWrite(PWAVEALLOC pClient)
{
DWORD dwSize;
BOOL Result;
BOOL Result = FALSE;
while (pClient->NextBuffer)
@ -549,7 +549,7 @@ static MMRESULT OpenWaveDevice(UINT DeviceType,
BOOL Result;
DWORD BytesReturned;
LPWAVEFORMATEX pFormats;
PWAVEALLOC *pUserHandle;
PWAVEALLOC *pUserHandle = &pClient;
HANDLE hDevice;
pFormats = (LPWAVEFORMATEX)((LPWAVEOPENDESC)dwParam1)->lpFormat;