[APITEST:WININET]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 22 Sep 2013 18:19:56 +0000 (18:19 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 22 Sep 2013 18:19:56 +0000 (18:19 +0000)
Make it use apitest.h

svn path=/trunk/; revision=60316

rostests/apitests/wininet/InternetOpen.c
rostests/apitests/wininet/testlist.c

index 5ae5ce5..f80aaa7 100644 (file)
@@ -5,14 +5,13 @@
  * PROGRAMMER:      Thomas Faber <thfabba@gmx.de>
  */
 
-#define UNICODE
+#include <apitest.h>
 
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 #include <windef.h>
 #include <winsock2.h>
-#include <wine/test.h>
 #include <wininet.h>
 
 struct hostent *(WINAPI *pgethostbyname)(const char *);
@@ -29,7 +28,7 @@ GetProc(
 {
     HMODULE ModuleHandle;
 
-    ModuleHandle = GetModuleHandle(L"ws2_32");
+    ModuleHandle = GetModuleHandleW(L"ws2_32");
     if (!ModuleHandle)
         return NULL;
     return GetProcAddress(ModuleHandle, FunctionName);
@@ -41,7 +40,7 @@ static
 BOOLEAN
 IsWinsockLoaded(VOID)
 {
-    return GetModuleHandle(L"ws2_32") != NULL;
+    return GetModuleHandleW(L"ws2_32") != NULL;
 }
 
 static
@@ -85,9 +84,9 @@ START_TEST(InternetOpen)
     ok(!IsWinsockLoaded(), "Winsock loaded on startup\n");
     ok(!IsWinsockInitialized(), "Winsock initialized on startup\n");
 
-    ModuleHandle = GetModuleHandle(L"wininet");
+    ModuleHandle = GetModuleHandleW(L"wininet");
     ok_ptr(ModuleHandle, NULL);
-    ModuleHandle = LoadLibrary(L"wininet");
+    ModuleHandle = LoadLibraryW(L"wininet");
     ok(ModuleHandle != NULL, "LoadLibrary failed, error %lu\n", GetLastError());
 
     pInternetOpen = (PVOID)GetProcAddress(ModuleHandle, "InternetOpenW");
index b406b3a..16c84d6 100644 (file)
@@ -1,7 +1,7 @@
 #define __ROS_LONG64__
 
 #define STANDALONE
-#include <wine/test.h>
+#include <apitest.h>
 
 extern void func_InternetOpen(void);