imagehlp/tests: Compile with -D__WINESRC__.
This commit is contained in:
parent
026b711483
commit
94c0604e81
|
@ -1,5 +1,4 @@
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue