Skip to content

Commit

Permalink
Uninitialized variable. This could cause an issue, but is extremely u…
Browse files Browse the repository at this point in the history
…nlikely.
  • Loading branch information
Mike committed Jul 18, 2012
1 parent 11aba40 commit 4b4b64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/AudioEngine/Sinks/AESinkDirectSound.cpp
Expand Up @@ -130,7 +130,7 @@ bool CAESinkDirectSound::Initialize(AEAudioFormat &format, std::string &device)

LPGUID deviceGUID = NULL;
RPC_CSTR wszUuid = NULL;
HRESULT hr;
HRESULT hr = E_FAIL;
std::list<DSDevice> DSDeviceList;
std::string deviceFriendlyName;
DirectSoundEnumerate(DSEnumCallback, &DSDeviceList);
Expand All @@ -149,7 +149,7 @@ bool CAESinkDirectSound::Initialize(AEAudioFormat &format, std::string &device)
break;
}
}
if (hr == RPC_S_OK) RpcStringFree(&wszUuid);
if (hr == RPC_S_OK) RpcStringFree(&wszUuid);
}

hr = DirectSoundCreate(deviceGUID, &m_pDSound, NULL);
Expand Down

0 comments on commit 4b4b64e

Please sign in to comment.