[PATCH] msi: Fixed check_flag_combo macro (Coverity)

Marcus Meissner meissner at suse.de
Mon May 9 06:05:57 CDT 2011


On Mon, May 09, 2011 at 12:07:39PM +0200, Alexandre Julliard wrote:
> Marcus Meissner <meissner at suse.de> writes:
> 
> > The macro was always FALSE, as
> > 	x & y == ~y
> > is always FALSE. x& y == y was clearly intended.
> > CID 1448
> 
> It doesn't work here:
> 
> ../../../tools/runtest -q -P wine -M msi.dll -T ../../.. -p msi_test.exe.so action.c && touch action.ok
> action.c:5578: Test failed: Expected ERROR_SUCCESS, got 1627
> action.c:5587: Test failed: Expected ERROR_FILE_NOT_FOUND, got 0
> action.c:5599: Test failed: Expected ERROR_FILE_NOT_FOUND, got 0
> action.c:5656: Test failed: key not created
> action.c:5660: Test failed: key not created
> action.c:5664: Test failed: key not created
> make: *** [action.ok] Error 6

I have the suspicion that my patch just uncovers another bug, either
in this specific check, or other code. :/

...
trace:msi:ITERATE_RemoveEnvironmentString name L"=+-MSITESTVAR2" value L"1"
err:msi:env_parse_flags Invalid flags: 00000007
...

Hans? You seem to have added it the remove environment checks in aaf5ff.. any idea?

Ciao, Marcus



More information about the wine-devel mailing list