- Fix msvc project generation for kernel mode drivers without a driver entry
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 27 Jan 2009 21:52:36 +0000 (21:52 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 27 Jan 2009 21:52:36 +0000 (21:52 +0000)
svn path=/trunk/; revision=39152

reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp

index ed744fb..2fb3624 100644 (file)
@@ -471,7 +471,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
                {
                        fprintf ( OUT, "\t\t\t<Tool\r\n" );
                        fprintf ( OUT, "\t\t\t\tName=\"VCLinkerTool\"\r\n" );
-                       if (module.GetEntryPoint(false) == "0")
+                       if (module.GetEntryPoint(false) == "0" && sys == false)
                                fprintf ( OUT, "AdditionalOptions=\"/noentry\"" );
 
                        if (configuration.VSProjectVersion == "9.00")
@@ -544,7 +544,10 @@ MSVCBackend::_generate_vcproj ( const Module& module )
 
                        if ( sys )
                        {
-                               fprintf ( OUT, "\t\t\t\tAdditionalOptions=\" /ALIGN:0x20 /SECTION:INIT,D /IGNORE:4001,4037,4039,4065,4070,4078,4087,4089,4096\"\r\n" );
+                               if (module.GetEntryPoint(false) == "0")
+                                       fprintf ( OUT, "\t\t\t\tAdditionalOptions=\" /noentry /ALIGN:0x20 /SECTION:INIT,D /IGNORE:4001,4037,4039,4065,4070,4078,4087,4089,4096\"\r\n" );
+                               else
+                                       fprintf ( OUT, "\t\t\t\tAdditionalOptions=\" /ALIGN:0x20 /SECTION:INIT,D /IGNORE:4001,4037,4039,4065,4070,4078,4087,4089,4096\"\r\n" );
                                fprintf ( OUT, "\t\t\t\tIgnoreAllDefaultLibraries=\"TRUE\"\r\n" );
                                fprintf ( OUT, "\t\t\t\tGenerateManifest=\"FALSE\"\r\n" );
                                fprintf ( OUT, "\t\t\t\tSubSystem=\"%d\"\r\n", 3 );