Browse Source

Fix compilation of the RTL for kernel mode.

The procedure InitStdIO is needed in both modes, but it's only called in user mode.

git-svn-id: branches/svenbarth/nativent@19292 -
svenbarth 14 years ago
parent
commit
0889aac157
1 changed files with 4 additions and 10 deletions
  1. 4 10
      rtl/nativent/system.pp

+ 4 - 10
rtl/nativent/system.pp

@@ -376,12 +376,11 @@ begin
 end;
 end;
 {$endif}
 {$endif}
 
 
-{$ifndef kmode}
-
-// other user mode only stuff
-
 procedure SysInitStdIO;
 procedure SysInitStdIO;
 begin
 begin
+  { This function is currently only called if the RTL is compiled for Usermode;
+    one could think about adding a text driver that outputs using DbgPrint }
+{$ifndef KMODE}
   with PSimplePEB(CurrentPEB)^.ProcessParameters^ do begin
   with PSimplePEB(CurrentPEB)^.ProcessParameters^ do begin
     StdInputHandle := StandardInput;
     StdInputHandle := StandardInput;
     StdOutputHandle := StandardOutput;
     StdOutputHandle := StandardOutput;
@@ -405,13 +404,8 @@ begin
     Assign(ErrOutput, '');
     Assign(ErrOutput, '');
     Assign(StdErr, '');
     Assign(StdErr, '');
   end;
   end;
-end;
-
-{$else}
-
-// other kernel mode only stuff
-
 {$endif}
 {$endif}
+end;
 
 
 function GetProcessID: SizeUInt;
 function GetProcessID: SizeUInt;
 begin
 begin