advapi32: Fix RegGetValue on REG_BINARY data.

This commit is contained in:
Maarten Lankhorst 2010-02-01 11:09:26 +01:00 committed by Alexandre Julliard
parent 89d458a128
commit 96ca708706

View file

@ -1432,9 +1432,9 @@ static VOID ADVAPI_ApplyRestrictions( DWORD dwFlags, DWORD dwType,
{
DWORD cbExpect = 0;
if ((dwFlags & RRF_RT_DWORD) == RRF_RT_DWORD)
if ((dwFlags & RRF_RT_ANY) == RRF_RT_DWORD)
cbExpect = 4;
else if ((dwFlags & RRF_RT_QWORD) == RRF_RT_QWORD)
else if ((dwFlags & RRF_RT_ANY) == RRF_RT_QWORD)
cbExpect = 8;
if (cbExpect && cbData != cbExpect)