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...

svn path=/trunk/; revision=19405
This commit is contained in:
Thomas Bluemel 2005-11-21 10:49:48 +00:00
parent d5691f048e
commit dd2be60406

View file

@ -77,7 +77,7 @@ static MMRESULT OpenWaveDevice(UINT DeviceType,
DWORD dwParam2) DWORD dwParam2)
{ {
// TODO: Implement // TODO: Implement
PWAVEALLOC pClient; PWAVEALLOC pClient = (PWAVEALLOC)dwUser;
//MMRESULT mResult; //MMRESULT mResult;
//BOOL Result; //BOOL Result;
//DWORD BytesReturned; //DWORD BytesReturned;
@ -179,7 +179,6 @@ APIENTRY DWORD wodMessage(DWORD dwId, DWORD dwMessage, DWORD dwUser, DWORD dwPar
case WODM_CLOSE: case WODM_CLOSE:
{ {
MMRESULT Result;
DPRINT("WODM_CLOSE"); DPRINT("WODM_CLOSE");
// 1. Check if the task is ready to complete // 1. Check if the task is ready to complete
@ -189,7 +188,7 @@ APIENTRY DWORD wodMessage(DWORD dwId, DWORD dwMessage, DWORD dwUser, DWORD dwPar
if ( pTask->AuxReturnCode != MMSYSERR_NOERROR) if ( pTask->AuxReturnCode != MMSYSERR_NOERROR)
{ {
return Result; return pTask->AuxReturnCode;
} }
else else