[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 27 May 2014 21:29:36 +0000 (21:29 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 27 May 2014 21:29:36 +0000 (21:29 +0000)
Fix the previous fix. Use LOBYTE/HIBYTE not LOWORD/HIWORD.

svn path=/trunk/; revision=63484

reactos/subsystems/ntvdm/dos/dos32krnl/dos.c

index ad218f1..b4c565f 100644 (file)
@@ -443,8 +443,8 @@ static WORD DosCopyEnvironmentBlock(LPCVOID Environment, LPCSTR ProgramName)
     *(DestBuffer++) = 0;
 
     /* Store the special program name tag */
-    *(DestBuffer++) = LOWORD(DOS_PROGRAM_NAME_TAG);
-    *(DestBuffer++) = HIWORD(DOS_PROGRAM_NAME_TAG);
+    *(DestBuffer++) = LOBYTE(DOS_PROGRAM_NAME_TAG);
+    *(DestBuffer++) = HIBYTE(DOS_PROGRAM_NAME_TAG);
 
     /* Copy the program name after the environment block */
     strcpy(DestBuffer, ProgramName);