shell32/tests: Fix checking the child strings
André Hentschel
nerv at dawncrow.de
Mon Aug 29 14:09:55 CDT 2011
Should stop the crash on Solaris and maybe others
---
dlls/shell32/tests/shlexec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index ea9cbc5..345c8e1 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -680,7 +680,7 @@ static void _okChildString(const char* file, int line, const char* key, const ch
{
char* result;
result=getChildString("Arguments", key);
- ok_(file, line)(lstrcmpiA(result, expected) == 0,
+ ok_(file, line)(result && lstrcmpiA(result, expected) == 0,
"%s expected '%s', got '%s'\n", key, expected, result);
}
@@ -688,7 +688,7 @@ static void _okChildPath(const char* file, int line, const char* key, const char
{
char* result;
result=getChildString("Arguments", key);
- ok_(file, line)(StrCmpPath(result, expected) == 0,
+ ok_(file, line)(result && StrCmpPath(result, expected) == 0,
"%s expected '%s', got '%s'\n", key, expected, result);
}
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list