advapi32: Fix RegGetValue on REG_BINARY data.
This commit is contained in:
parent
89d458a128
commit
96ca708706
@ -1432,9 +1432,9 @@ static VOID ADVAPI_ApplyRestrictions( DWORD dwFlags, DWORD dwType,
|
|||||||
{
|
{
|
||||||
DWORD cbExpect = 0;
|
DWORD cbExpect = 0;
|
||||||
|
|
||||||
if ((dwFlags & RRF_RT_DWORD) == RRF_RT_DWORD)
|
if ((dwFlags & RRF_RT_ANY) == RRF_RT_DWORD)
|
||||||
cbExpect = 4;
|
cbExpect = 4;
|
||||||
else if ((dwFlags & RRF_RT_QWORD) == RRF_RT_QWORD)
|
else if ((dwFlags & RRF_RT_ANY) == RRF_RT_QWORD)
|
||||||
cbExpect = 8;
|
cbExpect = 8;
|
||||||
|
|
||||||
if (cbExpect && cbData != cbExpect)
|
if (cbExpect && cbData != cbExpect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user