advapi32: "RegGetValue" fails when "dwFlags" includes "RRF_RT_ANY"
Mathias Kosch
info at mkosch.de
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
persisted.
The function "RegGetValue" fails in case "dwFlags" contains
"RRF_RT_ANY" without "RRF_NOEXPAND". However this won't fail on
Windows.
I added a test for the flag "RRF_RT_ANY" or any flag which contains
these bits to prevent "RegGetValue" from returning
"ERROR_INVALID_PARAMETER" in that case.
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.
[1] http://www.winehq.org/site/sending_patches
--
Mathias Kosch <info at mkosch.de> | http://www.mkosch.de/
RSA Public Key: http://www.mkosch.de/pubkey
Linux Live-CD mit KDE: http://www.knopper.net/knoppix/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-advapi32-RegGetValue-fails-when-dwFlags-include.patch
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080719/66d30817/attachment.txt
More information about the wine-patches
mailing list