[COMMAND]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 13 Sep 2015 01:18:50 +0000 (01:18 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 13 Sep 2015 01:18:50 +0000 (01:18 +0000)
- Fix the GCC macro for structure declaration, so that referencing an offset to the structure doesn't fail anymore (ie. doing "mov dx, offset MyStruct" doesn't assemble to "mov dx, 0x100").
This fixes NTVDM not being able to start any DOS app. Reported by Aleksander Rechitskiy.
CORE-9677 CORE-9679 #resolve
CORE-9678

[NTVDM]
- Fix newline in DPRINT.

svn path=/trunk/; revision=69211

reactos/subsystems/mvdm/dos/asmxtras.inc
reactos/subsystems/mvdm/ntvdm/dos/dem.c

index 731c108..fe7812e 100644 (file)
@@ -72,7 +72,7 @@
 #define ENDS(...) ENDM
 
 #define VAR_STRUCT(name, struct) \
-    struct name
+    name: struct name
 
 #define FIELD(name, field) \
     name##_##field
index afe3067..f766a1c 100644 (file)
@@ -601,7 +601,7 @@ static VOID CmdSetExitCode(VOID)
     {
         RemoveComSpecInfo(ComSpecInfo);
 #endif
-        DPRINT1("Exit DOS from ExitCode (prologue)!");
+        DPRINT1("Exit DOS from ExitCode (prologue)!\n");
         setCF(0);
         goto Quit;
 #ifndef STANDALONE