mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:22:57 +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)
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue