fixed uninitialized variables warnings by not using/returning totally random data. The code still has a lot of totally broken DWORD->Pointer casts that are going to be a problem on 64 bit architectures...
Modified: trunk/reactos/lib/mmdrv/wave.c

Modified: trunk/reactos/lib/mmdrv/wave.c
--- trunk/reactos/lib/mmdrv/wave.c	2005-11-21 10:26:27 UTC (rev 19404)
+++ trunk/reactos/lib/mmdrv/wave.c	2005-11-21 10:49:48 UTC (rev 19405)
@@ -77,7 +77,7 @@
 								DWORD dwParam2)
 {
 	// TODO: Implement
-    PWAVEALLOC     pClient;  
+    PWAVEALLOC     pClient = (PWAVEALLOC)dwUser;  
     //MMRESULT mResult;
     //BOOL Result;
     //DWORD BytesReturned;
@@ -178,8 +178,7 @@
             return OpenWaveDevice(WaveOutDevice, dwId, dwUser, dwParam1, dwParam2);
 
         case WODM_CLOSE:
-			{
-				MMRESULT Result;				
+			{	
 				DPRINT("WODM_CLOSE");
 
 				// 1. Check if the task is ready to complete
@@ -189,7 +188,7 @@
 	            			
 				if ( pTask->AuxReturnCode != MMSYSERR_NOERROR) 
                 {
-				    return Result;
+				    return pTask->AuxReturnCode;
 				}
 				else