[PATCH 1/6] kernel32/tests: Add missing return value check to module tests (Coverity)

Alex Henrie alexhenrie24 at gmail.com
Sun Jan 7 23:05:15 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 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 108d0cb999..d3b9c92086 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() );
-- 
2.15.1




More information about the wine-devel mailing list