halovilla, usa
This commit is contained in:
parent
a50da2e603
commit
9721d1ee84
|
@ -309,9 +309,11 @@ extern "C" CXBXKRNL_API void NTAPI EmuInit
|
|||
|
||||
CreateDirectory(szBuffer, NULL);
|
||||
|
||||
/* is it necessary to make this directory title unique?
|
||||
sprintf(&szBuffer[spot+6], "\\%08x", pCertificate->dwTitleId);
|
||||
|
||||
CreateDirectory(szBuffer, NULL);
|
||||
*/
|
||||
|
||||
g_hZDrive = CreateFile(szBuffer, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
|
||||
|
||||
|
|
|
@ -1811,6 +1811,50 @@ XBSYSAPI EXPORTNUM(226) NTSTATUS NTAPI xboxkrnl::NtSetInformationFile
|
|||
return ret;
|
||||
}
|
||||
|
||||
// ******************************************************************
|
||||
// * 0x00E8 - NtUserIoApcDispatcher
|
||||
// ******************************************************************
|
||||
XBSYSAPI EXPORTNUM(232) VOID xboxkrnl::NtUserIoApcDispatcher
|
||||
(
|
||||
PVOID ApcContext,
|
||||
PIO_STATUS_BLOCK IoStatusBlock,
|
||||
ULONG Reserved
|
||||
)
|
||||
{
|
||||
// Note: This function is called within Win2k/XP context, so no EmuSwapFS here
|
||||
|
||||
// ******************************************************************
|
||||
// * debug trace
|
||||
// ******************************************************************
|
||||
#ifdef _DEBUG_TRACE
|
||||
{
|
||||
printf("EmuKrnl (0x%X): NtUserIoApcDispatcher\n"
|
||||
"(\n"
|
||||
" ApcContext : 0x%.08X\n"
|
||||
" IoStatusBlock : 0x%.08X\n"
|
||||
" Reserved : 0x%.08X\n"
|
||||
");\n",
|
||||
GetCurrentThreadId(), ApcContext, IoStatusBlock, Reserved);
|
||||
}
|
||||
#endif
|
||||
|
||||
EmuSwapFS(); // Xbox FS
|
||||
|
||||
__asm
|
||||
{
|
||||
mov esi, IoStatusBlock
|
||||
mov ecx, [esi]
|
||||
mov eax, 0x0C0000000
|
||||
|
||||
push esi
|
||||
push ecx
|
||||
push eax
|
||||
call ApcContext
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// ******************************************************************
|
||||
// * 0x00EA - NtWaitForSingleObjectEx
|
||||
// ******************************************************************
|
||||
|
|
|
@ -297,7 +297,7 @@ extern "C" CXBXKRNL_API uint32 KernelThunkTable[367] =
|
|||
(uint32)PANIC(0x00E5), // 0x00E5 (229)
|
||||
(uint32)PANIC(0x00E6), // 0x00E6 (230)
|
||||
(uint32)PANIC(0x00E7), // 0x00E7 (231)
|
||||
(uint32)PANIC(0x00E8), // 0x00E8 (232)
|
||||
(uint32)&xboxkrnl::NtUserIoApcDispatcher, // 0x00E8 (232)
|
||||
(uint32)PANIC(0x00E9), // 0x00E9 (233)
|
||||
(uint32)&xboxkrnl::NtWaitForSingleObjectEx, // 0x00EA (234)
|
||||
(uint32)PANIC(0x00EB), // 0x00EB (235)
|
||||
|
|
Loading…
Reference in New Issue