mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 04:03:56 +00:00
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!
svn path=/trunk/; revision=19464
This commit is contained in:
parent
3143bf613e
commit
e0535fe8a9
1 changed files with 4 additions and 4 deletions
|
@ -79,8 +79,8 @@ MMRESULT GetDeviceCapabilities(DWORD ID, UINT DeviceType,
|
|||
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 DWORD waveThread(LPVOID lpParameter)
|
|||
static MMRESULT waveReadWrite(PWAVEALLOC pClient)
|
||||
{
|
||||
DWORD dwSize;
|
||||
BOOL Result;
|
||||
BOOL Result = FALSE;
|
||||
|
||||
|
||||
while (pClient->NextBuffer)
|
||||
|
@ -549,7 +549,7 @@ static MMRESULT OpenWaveDevice(UINT DeviceType,
|
|||
BOOL Result;
|
||||
DWORD BytesReturned;
|
||||
LPWAVEFORMATEX pFormats;
|
||||
PWAVEALLOC *pUserHandle;
|
||||
PWAVEALLOC *pUserHandle = &pClient;
|
||||
HANDLE hDevice;
|
||||
|
||||
pFormats = (LPWAVEFORMATEX)((LPWAVEOPENDESC)dwParam1)->lpFormat;
|
||||
|
|
Loading…
Reference in a new issue