[PDH_WINETEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 30 Apr 2014 12:50:57 +0000 (12:50 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 30 Apr 2014 12:50:57 +0000 (12:50 +0000)
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=63071

rostests/winetests/pdh/CMakeLists.txt
rostests/winetests/pdh/pdh.c

index 8f07581..9deafba 100644 (file)
@@ -1,5 +1,8 @@
 
 add_executable(pdh_winetest pdh.c testlist.c)
 set_module_type(pdh_winetest win32cui)
-add_importlibs(pdh_winetest pdh msvcrt kernel32 ntdll)
+add_importlibs(pdh_winetest pdh msvcrt kernel32)
+if(MSVC)
+    add_importlibs(pdh_winetest ntdll)
+endif()
 add_cd_file(TARGET pdh_winetest DESTINATION reactos/bin FOR all)
index 9690020..f492d5a 100644 (file)
@@ -63,7 +63,7 @@ static BOOL is_lang_english(void)
 
 static void init_function_ptrs( void )
 {
-    pdh = GetModuleHandle( "pdh" );
+    pdh = GetModuleHandleA( "pdh" );
     GETFUNCPTR( PdhAddEnglishCounterA )
     GETFUNCPTR( PdhAddEnglishCounterW )
     GETFUNCPTR( PdhCollectQueryDataWithTime )