Nikolay Sivov : imagehlp/tests: Compile with -D__WINESRC__.

Alexandre Julliard julliard at winehq.org
Wed Oct 16 14:25:49 CDT 2013


Module: wine
Branch: master
Commit: 94c0604e81ec6ef1d4fd03b50b5364bfae9df396
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=94c0604e81ec6ef1d4fd03b50b5364bfae9df396

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Oct 15 23:26:22 2013 +0400

imagehlp/tests: Compile with -D__WINESRC__.

---

 dlls/imagehlp/tests/Makefile.in |    1 -
 dlls/imagehlp/tests/integrity.c |    8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/dlls/imagehlp/tests/Makefile.in b/dlls/imagehlp/tests/Makefile.in
index 8731a08..83a118f 100644
--- a/dlls/imagehlp/tests/Makefile.in
+++ b/dlls/imagehlp/tests/Makefile.in
@@ -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 \
diff --git a/dlls/imagehlp/tests/integrity.c b/dlls/imagehlp/tests/integrity.c
index 0785c2a..c29eea8 100644
--- a/dlls/imagehlp/tests/integrity.c
+++ b/dlls/imagehlp/tests/integrity.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);
 }




More information about the wine-cvs mailing list