]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utils.cpp
Warning fixes.
[wxWidgets.git] / src / msw / utils.cpp
index 9ff3687c46425140891a97113e69ca651970dffa..901aa039ed6942778303a2c7742ec53bb8995524 100644 (file)
@@ -830,7 +830,7 @@ static void InitToolHelp32()
     lpfProcess32First = NULL;
     lpfProcess32Next = NULL;
     
-    HINSTANCE hInstLib = LoadLibraryA( "Kernel32.DLL" ) ;
+    HINSTANCE hInstLib = LoadLibrary( wxT("Kernel32.DLL") ) ;
     if( hInstLib == NULL )
         return ;
     
@@ -843,15 +843,32 @@ static void InitToolHelp32()
     lpfCreateToolhelp32Snapshot=
         (HANDLE(WINAPI *)(DWORD,DWORD))
         GetProcAddress( hInstLib,
-        "CreateToolhelp32Snapshot" ) ;
+#ifdef __WXWINCE__
+        wxT("CreateToolhelp32Snapshot")
+#else
+        "CreateToolhelp32Snapshot"
+#endif
+        ) ;
     
     lpfProcess32First=
         (BOOL(WINAPI *)(HANDLE,LPPROCESSENTRY32))
-        GetProcAddress( hInstLib, "Process32First" ) ;
+        GetProcAddress( hInstLib,
+#ifdef __WXWINCE__
+        wxT("Process32First")
+#else
+        "Process32First"
+#endif
+        ) ;
 
     lpfProcess32Next=
         (BOOL(WINAPI *)(HANDLE,LPPROCESSENTRY32))
-        GetProcAddress( hInstLib, "Process32Next" ) ;
+        GetProcAddress( hInstLib,
+#ifdef __WXWINCE__
+        wxT("Process32Next")
+#else
+        "Process32Next"
+#endif
+        ) ;
 
     FreeLibrary( hInstLib ) ;
 }