advapi32: "RegGetValue" fails with some correct combinations of "dwFlags"

Mathias Kosch info at mkosch.de
Thu Jul 17 14:49:07 CDT 2008


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

In case dwFlags contains the Bits (RRF_RT_REG_EXPAND_SZ |
RRF_RT_REG_SZ) and not the bit RRF_NOEXPAND the function will return
ERROR_INVALID_PARAMETER. This is wrong behaviour, because expansion
will transform a result of type RRF_RT_REG_EXPAND_SZ into
RRF_RT_REG_SZ which satisfies the request.
This will especially make the use of the flag "RRF_RT_ANY" impossible.

The patch and test case were created against wine-1.1.1 and are both
attached to this mail.

I hope this time I provided enough information and someone can apply
this patch to the official source code.
-- 
Mathias Kosch <info at mkosch.de> | http://www.mkosch.de/
RSA Public Key: http://www.mkosch.de/pubkey

Günstiger telefonieren zu 0180x-Nummern: http://www.tk-anbieter.de/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: registry.c.patch.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080717/c419713f/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testcase-registry.c.patch.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080717/c419713f/attachment-0001.txt 


More information about the wine-patches mailing list