mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 11:31:54 +00:00
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:
parent
d5691f048e
commit
dd2be60406
1 changed files with 3 additions and 4 deletions
|
@ -77,7 +77,7 @@ static MMRESULT OpenWaveDevice(UINT DeviceType,
|
|||
DWORD dwParam2)
|
||||
{
|
||||
// TODO: Implement
|
||||
PWAVEALLOC pClient;
|
||||
PWAVEALLOC pClient = (PWAVEALLOC)dwUser;
|
||||
//MMRESULT mResult;
|
||||
//BOOL Result;
|
||||
//DWORD BytesReturned;
|
||||
|
@ -178,8 +178,7 @@ APIENTRY DWORD wodMessage(DWORD dwId, DWORD dwMessage, DWORD dwUser, DWORD dwPar
|
|||
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 @@ APIENTRY DWORD wodMessage(DWORD dwId, DWORD dwMessage, DWORD dwUser, DWORD dwPar
|
|||
|
||||
if ( pTask->AuxReturnCode != MMSYSERR_NOERROR)
|
||||
{
|
||||
return Result;
|
||||
return pTask->AuxReturnCode;
|
||||
}
|
||||
else
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue