[try2] msi: Properly handle return value and type set by RegQueryValueEx.

Misha Koshelev mk144210 at bcm.edu
Wed Jun 13 01:01:09 CDT 2007


I noticed another error in the same line so I thought I'd just resubmit the patch
(replaces "msi: Do not use type value if call to RegQueryValueEx failed"), needed
for bug 8678.

http://msdn2.microsoft.com/en-us/library/ms724911.aspx
A call to RegQueryValueEx with a NULL data pointer and a valid size pointer returns
ERROR_SUCCESS if the size pointer is filled, _not_ ERROR_MORE_DATA, which is returned
if a valid data pointer is passed.
---
 dlls/msi/action.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aa44432ffc5c3c8e4a33703cc45e07ff0c7803a9.diff
Type: text/x-patch
Size: 542 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070613/f32718be/aa44432ffc5c3c8e4a33703cc45e07ff0c7803a9-0001.bin


More information about the wine-patches mailing list