advapi32: "RegGetValue" fails when "dwFlags" includes "RRF_RT_ANY"

Mathias Kosch info at
Sat Jul 19 12:55:08 CDT 2008

This patch fixes Bug#14509.
It also fixes Bug#14350 which was already marked as "fixed" but still

The function "RegGetValue" fails in case "dwFlags" contains
"RRF_RT_ANY" without "RRF_NOEXPAND". However this won't fail on

I added a test for the flag "RRF_RT_ANY" or any flag which contains
these bits to prevent "RegGetValue" from returning

I provided a test case and it passes unter wine (latest git tree),
"Windows Server 2003 SP2" and "Windows Server 2008 Enterprise SP1".

I read (even more) carefully over [1] again and hope that I finally
did everything correctly.

Mathias Kosch <info at> |
RSA Public Key:

Linux Live-CD mit KDE:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-advapi32-RegGetValue-fails-when-dwFlags-include.patch

More information about the wine-patches mailing list