PIMAGE_DOS_HEADER Header;
PDWORD RelocationTable;
PWORD RelocWord;
+ LPSTR CmdLinePtr = (LPSTR)CommandLine;
DPRINT1("DosLoadExecutable(%d, %s, %s, %s, 0x%08X, 0x%08X)\n",
LoadType,
}
/* NULL-terminate the command line by removing the return carriage character */
- while (*CommandLine && *CommandLine != '\r') CommandLine++;
- *(LPSTR)CommandLine = '\0';
+ while (*CmdLinePtr && *CmdLinePtr != '\r') CmdLinePtr++;
+ *CmdLinePtr = '\0';
/* Open a handle to the executable */
FileHandle = CreateFileA(ExecutablePath,