mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-19 12:40:30 +00:00
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;
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue