pvdk/openmw — comment on commit b8da5b4e9131a26a0cb28c54db362d6d01bc73a8
File: apps/launcher/main.cpp line 46
By pvdk:

On second thought I'm not happy about adding WinMain.cpp, as it should work without it. Qt uses a trick where it calls your main() from inside their WinMain function in the Windows qtmain library. Check out: https://qt.gitorious.org/qt/qt/blobs/HEAD/src/winmain/qtmain_win.cpp
Adding WinMain manually could lead to some unexpected behaviour as the Qt libary is loaded in their WinMain.