mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
- Fix msvc project generation for kernel mode drivers without a driver entry
svn path=/trunk/; revision=39152
This commit is contained in:
parent
a167adfcb4
commit
97111999d7
1 changed files with 5 additions and 2 deletions
|
@ -471,7 +471,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
|
||||||
{
|
{
|
||||||
fprintf ( OUT, "\t\t\t<Tool\r\n" );
|
fprintf ( OUT, "\t\t\t<Tool\r\n" );
|
||||||
fprintf ( OUT, "\t\t\t\tName=\"VCLinkerTool\"\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\"" );
|
fprintf ( OUT, "AdditionalOptions=\"/noentry\"" );
|
||||||
|
|
||||||
if (configuration.VSProjectVersion == "9.00")
|
if (configuration.VSProjectVersion == "9.00")
|
||||||
|
@ -544,7 +544,10 @@ MSVCBackend::_generate_vcproj ( const Module& module )
|
||||||
|
|
||||||
if ( sys )
|
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\tIgnoreAllDefaultLibraries=\"TRUE\"\r\n" );
|
||||||
fprintf ( OUT, "\t\t\t\tGenerateManifest=\"FALSE\"\r\n" );
|
fprintf ( OUT, "\t\t\t\tGenerateManifest=\"FALSE\"\r\n" );
|
||||||
fprintf ( OUT, "\t\t\t\tSubSystem=\"%d\"\r\n", 3 );
|
fprintf ( OUT, "\t\t\t\tSubSystem=\"%d\"\r\n", 3 );
|
||||||
|
|
Loading…
Reference in a new issue