mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user