#include "utils.h"
#include "dem.h"
-#include "bop.h"
+#include "cpu/bop.h"
#include "bios/bios.h"
+#include "mouse32.h"
/* Extra PSDK/NDK Headers */
#include <ndk/obtypes.h>
{
case 0x11: // Load the DOS kernel
{
- BOOLEAN Success;
+ BOOLEAN Success = FALSE;
HANDLE hDosKernel;
ULONG ulDosKernelSize = 0;
default:
{
-
DPRINT1("Unknown DOS System BOP Function: 0x%02X\n", FuncNum);
// setCF(1); // Disable, otherwise we enter an infinite loop
break;
STARTUPINFOA StartupInfo;
PROCESS_INFORMATION ProcessInformation;
- /* NULL-terminate the command by removing the return carriage character */
- while (*CmdPtr != '\r') CmdPtr++;
+ /* NULL-terminate the command line by removing the return carriage character */
+ while (*CmdPtr && *CmdPtr != '\r') CmdPtr++;
*CmdPtr = '\0';
DPRINT1("CMD Run Command '%s'\n", Command);
BOOLEAN Result;
Result = DosBIOSInitialize();
+ DosMouseInitialize(); // FIXME: Should be done by the DOS BIOS
// Result &= DosKRNLInitialize();
return Result;