diff --git a/reactos/tools/rbuild/backend/msbuild/msbuild.cpp b/reactos/tools/rbuild/backend/msbuild/msbuild.cpp index 7ed4b685277..dfee1b11093 100644 --- a/reactos/tools/rbuild/backend/msbuild/msbuild.cpp +++ b/reactos/tools/rbuild/backend/msbuild/msbuild.cpp @@ -141,9 +141,14 @@ MsBuildBackend::_generate_sources ( const Module& module ) if (module_type == ".sys") fprintf ( OUT, "TARGETTYPE=DRIVER\r\n" ); - if (module_type == ".dll") + else if (module_type == ".dll") + { fprintf ( OUT, "TARGETTYPE=LIBRARY\r\n" ); + } + else if (module_type == ".exe") + fprintf ( OUT, "TARGETTYPE=PROGRAM\r\n" ); + fprintf ( OUT, "\r\nMSC_WARNING_LEVEL=/W3 /WX\r\n\r\n" ); /* Disable deprecated function uage warnings */