Fix the previous fix. Use LOBYTE/HIBYTE not LOWORD/HIWORD.


svn path=/trunk/; revision=63484
This commit is contained in:
Aleksandar Andrejevic 2014-05-27 21:29:36 +00:00
parent dad0af61d4
commit 0f0db19784

View 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);