[try2 1/1] msi/tests: automation: Fix pointer check before calling lstrcpyW.

Misha Koshelev mk144210 at bcm.edu
Tue Nov 27 21:11:46 CST 2007


The previous patch was last week I think. This fixes a Valgrind error in the test. This is
correct as vtResult is just hte _expected_ return type, and this way we check the actual return type 
(new this version) and then the validity of the pointer (same as old patch) before calling lstrcpyW
so we don't pass NULL to lstrcpyW.
---
 dlls/msi/tests/automation.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f5c0bf93260a7292cc8ce9a01b1c4c654f1975c4.diff
Type: text/x-patch
Size: 622 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071127/bb40b280/attachment-0001.bin 


More information about the wine-patches mailing list