Alex Henrie : kernel32/tests: Add missing return value check to module tests (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Jan 8 16:08:06 CST 2018
Module: wine
Branch: master
Commit: 3675b7035e2fd6d5606464d45182c7aa2bca8309
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3675b7035e2fd6d5606464d45182c7aa2bca8309
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Sun Jan 7 22:05:15 2018 -0700
kernel32/tests: Add missing return value check to module tests (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/module.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/module.c b/dlls/kernel32/tests/module.c
index 108d0cb..d3b9c92 100644
--- a/dlls/kernel32/tests/module.c
+++ b/dlls/kernel32/tests/module.c
@@ -972,7 +972,8 @@ static void test_AddDllDirectory(void)
buf[0] = '\0';
GetTempPathW( sizeof(path)/sizeof(path[0]), path );
- GetTempFileNameW( path, tmpW, 0, buf );
+ ret = GetTempFileNameW( path, tmpW, 0, buf );
+ ok( ret, "GetTempFileName failed err %u\n", GetLastError() );
SetLastError( 0xdeadbeef );
cookie = pAddDllDirectory( buf );
ok( cookie != NULL, "AddDllDirectory failed err %u\n", GetLastError() );
More information about the wine-cvs
mailing list