Commit 94c0604e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

imagehlp/tests: Compile with -D__WINESRC__.

parent 026b7114
TESTDLL = imagehlp.dll
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
image.c \
......
......@@ -107,10 +107,10 @@ static BOOL copy_dll_file(void)
lstrcatA(sys_dir, "imagehlp.dll");
/* Copy DLL to a temp file */
GetTempPath(MAX_PATH, temp_path);
GetTempFileName(temp_path, "img", 0, test_dll_path);
GetTempPathA(MAX_PATH, temp_path);
GetTempFileNameA(temp_path, "img", 0, test_dll_path);
if (CopyFile(sys_dir, test_dll_path, FALSE) == 0)
if (CopyFileA(sys_dir, test_dll_path, FALSE) == 0)
{
skip("Unable to create copy of imagehlp.dll for tests.\n");
return FALSE;
......@@ -295,5 +295,5 @@ START_TEST(integrity)
ok(file_size == file_size_orig, "File size different after add and remove (old: %d; new: %d)\n", file_size_orig, file_size);
FreeLibrary(hImageHlp);
DeleteFile(test_dll_path);
DeleteFileA(test_dll_path);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment