PVOID casts where necessary
This commit is contained in:
parent
21733cc594
commit
95f6966a43
|
@ -958,7 +958,7 @@ VOID WINAPI XTL::EMUPATCH(XRegisterThreadNotifyRoutine)
|
||||||
// that we don't accidently register the same routine twice!
|
// that we don't accidently register the same routine twice!
|
||||||
if(g_pfnThreadNotification[i] == NULL)
|
if(g_pfnThreadNotification[i] == NULL)
|
||||||
{
|
{
|
||||||
g_pfnThreadNotification[i] = pThreadNotification->pfnNotifyRoutine;
|
g_pfnThreadNotification[i] = (PVOID)pThreadNotification->pfnNotifyRoutine;
|
||||||
g_iThreadNotificationCount++;
|
g_iThreadNotificationCount++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1655,7 +1655,7 @@ XBSYSAPI EXPORTNUM(219) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtReadFile
|
||||||
NTSTATUS ret = NtDll::NtReadFile(
|
NTSTATUS ret = NtDll::NtReadFile(
|
||||||
FileHandle,
|
FileHandle,
|
||||||
Event,
|
Event,
|
||||||
ApcRoutine,
|
(PVOID)ApcRoutine,
|
||||||
ApcContext,
|
ApcContext,
|
||||||
IoStatusBlock,
|
IoStatusBlock,
|
||||||
Buffer,
|
Buffer,
|
||||||
|
@ -2175,7 +2175,7 @@ XBSYSAPI EXPORTNUM(236) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtWriteFile
|
||||||
NTSTATUS ret = NtDll::NtWriteFile(
|
NTSTATUS ret = NtDll::NtWriteFile(
|
||||||
FileHandle,
|
FileHandle,
|
||||||
Event,
|
Event,
|
||||||
ApcRoutine,
|
(PVOID)ApcRoutine,
|
||||||
ApcContext,
|
ApcContext,
|
||||||
IoStatusBlock,
|
IoStatusBlock,
|
||||||
Buffer,
|
Buffer,
|
||||||
|
|
|
@ -274,9 +274,9 @@ XBSYSAPI EXPORTNUM(255) xboxkrnl::NTSTATUS NTAPI xboxkrnl::PsCreateSystemThreadE
|
||||||
// PCSTProxy is responsible for cleaning up this pointer
|
// PCSTProxy is responsible for cleaning up this pointer
|
||||||
PCSTProxyParam *iPCSTProxyParam = (PCSTProxyParam*)malloc(sizeof(PCSTProxyParam));
|
PCSTProxyParam *iPCSTProxyParam = (PCSTProxyParam*)malloc(sizeof(PCSTProxyParam));
|
||||||
|
|
||||||
iPCSTProxyParam->StartRoutine = StartRoutine;
|
iPCSTProxyParam->StartRoutine = (PVOID)StartRoutine;
|
||||||
iPCSTProxyParam->StartContext = StartContext;
|
iPCSTProxyParam->StartContext = StartContext;
|
||||||
iPCSTProxyParam->SystemRoutine = SystemRoutine; // NULL, XapiThreadStartup or unknown?
|
iPCSTProxyParam->SystemRoutine = (PVOID)SystemRoutine; // NULL, XapiThreadStartup or unknown?
|
||||||
iPCSTProxyParam->StartSuspended = CreateSuspended;
|
iPCSTProxyParam->StartSuspended = CreateSuspended;
|
||||||
iPCSTProxyParam->hStartedEvent = hStartedEvent;
|
iPCSTProxyParam->hStartedEvent = hStartedEvent;
|
||||||
|
|
||||||
|
@ -399,7 +399,7 @@ XBSYSAPI EXPORTNUM(257) xboxkrnl::NTSTATUS NTAPI xboxkrnl::PsSetCreateThreadNoti
|
||||||
// that we don't accidently register the same routine twice!
|
// that we don't accidently register the same routine twice!
|
||||||
if (g_pfnThreadNotification[i] == NULL)
|
if (g_pfnThreadNotification[i] == NULL)
|
||||||
{
|
{
|
||||||
g_pfnThreadNotification[i] = NotifyRoutine;
|
g_pfnThreadNotification[i] = (PVOID)NotifyRoutine;
|
||||||
g_iThreadNotificationCount++;
|
g_iThreadNotificationCount++;
|
||||||
ret = STATUS_SUCCESS;
|
ret = STATUS_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue