[ADVAPI32]
authorChristoph von Wittich <christoph_vw@reactos.org>
Tue, 16 Mar 2010 09:29:28 +0000 (09:29 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Tue, 16 Mar 2010 09:29:28 +0000 (09:29 +0000)
sync RegpApplyRestrictions to wine 1.1.40

svn path=/trunk/; revision=46219

reactos/dll/win32/advapi32/reg/reg.c

index 4a2ce7e..686101e 100644 (file)
@@ -1916,9 +1916,9 @@ RegpApplyRestrictions(DWORD dwFlags,
             {
                 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)