Author: hbelusca
Date: Fri Aug 9 22:23:27 2013
New Revision: 59683
URL:
http://svn.reactos.org/svn/reactos?rev=59683&view=rev
Log:
[CMAKE]
Fix console apps entry-point (problem since revision r53553).
Modified:
trunk/reactos/cmake/CMakeMacros.cmake
Modified: trunk/reactos/cmake/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/CMakeMacros.cmake?re…
==============================================================================
--- trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/CMakeMacros.cmake [iso-8859-1] Fri Aug 9 22:23:27 2013
@@ -430,7 +430,13 @@
elseif(${TYPE} STREQUAL nativecui)
set(__entrypoint NtProcessStartup)
set(__entrystack 4)
- elseif((${TYPE} STREQUAL win32gui) OR (${TYPE} STREQUAL win32cui))
+ elseif(${TYPE} STREQUAL win32cui)
+ if(__module_UNICODE)
+ set(__entrypoint wmainCRTStartup)
+ else()
+ set(__entrypoint mainCRTStartup)
+ endif()
+ elseif(${TYPE} STREQUAL win32gui)
if(__module_UNICODE)
set(__entrypoint wWinMainCRTStartup)
else()