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!
Modified: trunk/reactos/lib/mmdrv/wave.c
_____
Modified: trunk/reactos/lib/mmdrv/wave.c
--- trunk/reactos/lib/mmdrv/wave.c 2005-11-22 10:24:14 UTC (rev
19463)
+++ trunk/reactos/lib/mmdrv/wave.c 2005-11-22 11:20:01 UTC (rev
19464)
@@ -79,8 +79,8 @@
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 MMRESULT waveReadWrite(PWAVEALLOC pClient)
{
DWORD dwSize;
- BOOL Result;
+ BOOL Result = FALSE;
while (pClient->NextBuffer)
@@ -549,7 +549,7 @@
BOOL Result;
DWORD BytesReturned;
LPWAVEFORMATEX pFormats;
- PWAVEALLOC *pUserHandle;
+ PWAVEALLOC *pUserHandle = &pClient;
HANDLE hDevice;
pFormats = (LPWAVEFORMATEX)((LPWAVEOPENDESC)dwParam1)->lpFormat;
Show replies by date