[GDIHV]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 7 Nov 2015 10:41:56 +0000 (10:41 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 7 Nov 2015 10:41:56 +0000 (10:41 +0000)
Don't define UNICODE in source.

svn path=/trunk/; revision=69827

rosapps/applications/devutils/gdihv/CMakeLists.txt
rosapps/applications/devutils/gdihv/gdihv.c
rosapps/applications/devutils/gdihv/gdihv.h

index 1ede06a..44ae228 100644 (file)
@@ -7,6 +7,6 @@ list(APPEND SOURCE
        proclist.c)
 
 add_executable(gdihv ${SOURCE})
-set_module_type(gdihv win32cui)
+set_module_type(gdihv win32cui UNICODE)
 add_importlibs(gdihv user32 comctl32 psapi msvcrt kernel32)
 add_cd_file(TARGET gdihv DESTINATION reactos/system32 FOR all)
index 23b2f65..2a2b815 100644 (file)
@@ -34,9 +34,9 @@ MyGdiQueryTable()
        return pPeb->GdiSharedHandleTable;\r
 }\r
 \r
-int WINAPI WinMain (HINSTANCE hThisInstance,\r
+int WINAPI _tWinMain (HINSTANCE hThisInstance,\r
                     HINSTANCE hPrevInstance,\r
-                    LPSTR lpszArgument,\r
+                    LPTSTR lpszArgument,\r
                     int nStyle)\r
 \r
 {\r
index fda1677..3a84158 100644 (file)
@@ -1,8 +1,7 @@
 #ifndef _GDIHV_H\r
 #define _GDIHV_H\r
 \r
-#define UNICODE\r
-\r
+#include <tchar.h>\r
 #define WIN32_NO_STATUS\r
 #include <windows.h>\r
 #include <commctrl.h>\r