Maarten Lankhorst : advapi32: Fix RegGetValue on REG_BINARY data.
Alexandre Julliard
julliard at winehq.org
Mon Feb 1 08:56:05 CST 2010
Module: wine
Branch: master
Commit: 96ca7087064d6ee917b7ad83938cb42682e5158d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=96ca7087064d6ee917b7ad83938cb42682e5158d
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Mon Feb 1 11:09:26 2010 +0100
advapi32: Fix RegGetValue on REG_BINARY data.
---
dlls/advapi32/registry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c
index 28eabe3..84320d1 100644
--- a/dlls/advapi32/registry.c
+++ b/dlls/advapi32/registry.c
@@ -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)
More information about the wine-cvs
mailing list