mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 18:00:41 +00:00
[STOBJECT] Remove #if 0 and #endif in Volume_IsMute (#5973)
Based on KRosUser's volume.patch.
The pair of #if 0 and #endif was added in 180b6fb
.
CORE-18583
This commit is contained in:
parent
d5cfd83789
commit
b6a0ef10d2
1 changed files with 2 additions and 3 deletions
|
@ -111,7 +111,6 @@ static HRESULT __stdcall Volume_FindMixerControl(CSysTray * pSysTray)
|
||||||
|
|
||||||
HRESULT Volume_IsMute()
|
HRESULT Volume_IsMute()
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
MIXERCONTROLDETAILS mixerControlDetails;
|
MIXERCONTROLDETAILS mixerControlDetails;
|
||||||
|
|
||||||
if (g_mixerId != (UINT)-1 && g_muteControlID != (DWORD)-1)
|
if (g_mixerId != (UINT)-1 && g_muteControlID != (DWORD)-1)
|
||||||
|
@ -123,14 +122,14 @@ HRESULT Volume_IsMute()
|
||||||
mixerControlDetails.cChannels = 1;
|
mixerControlDetails.cChannels = 1;
|
||||||
mixerControlDetails.paDetails = &detailsResult;
|
mixerControlDetails.paDetails = &detailsResult;
|
||||||
mixerControlDetails.cbDetails = sizeof(detailsResult);
|
mixerControlDetails.cbDetails = sizeof(detailsResult);
|
||||||
if (mixerGetControlDetailsW((HMIXEROBJ) g_mixerId, &mixerControlDetails, 0))
|
if (mixerGetControlDetailsW((HMIXEROBJ)UlongToHandle(g_mixerId), &mixerControlDetails, 0))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
TRACE("Obtained mute status %d\n", detailsResult);
|
TRACE("Obtained mute status %d\n", detailsResult);
|
||||||
|
|
||||||
g_IsMute = detailsResult != 0;
|
g_IsMute = detailsResult != 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue