Reverted return a value from timer callback

This commit is contained in:
ergo720 2019-01-08 09:53:35 +01:00
parent 1ae67fb215
commit 9827cfcaa3
4 changed files with 5 additions and 8 deletions

View File

@ -685,7 +685,7 @@ static unsigned int WINAPI CxbxKrnlInterruptThread(PVOID param)
return 0;
}
static unsigned int CxbxKrnlClockThread(void* pVoid)
static void CxbxKrnlClockThread(void* pVoid)
{
LARGE_INTEGER CurrentTicks;
uint64_t Delta;
@ -719,8 +719,6 @@ static unsigned int CxbxKrnlClockThread(void* pVoid)
UnaccountedMicroseconds -= (IncrementScaling * 1000);
xboxkrnl::KiClockIsr(IncrementScaling);
return 0;
}
std::vector<xbaddr> g_RdtscPatches;

View File

@ -234,10 +234,9 @@ OHCI::OHCI(USBDevice* UsbObj)
OHCI_StateReset();
}
unsigned int OHCI::OHCI_FrameBoundaryWrapper(void* pVoid)
void OHCI::OHCI_FrameBoundaryWrapper(void* pVoid)
{
static_cast<OHCI*>(pVoid)->OHCI_FrameBoundaryWorker();
return 0;
static_cast<OHCI*>(pVoid)->OHCI_FrameBoundaryWorker();
}
void OHCI::OHCI_FrameBoundaryWorker()

View File

@ -183,7 +183,7 @@ class OHCI
int m_AsyncComplete = 0;
// EOF callback wrapper
static unsigned int OHCI_FrameBoundaryWrapper(void* pVoid);
static void OHCI_FrameBoundaryWrapper(void* pVoid);
// EOF callback function
void OHCI_FrameBoundaryWorker();
// inform the HCD that we got a problem here...

View File

@ -49,7 +49,7 @@
#define SCALE_US_IN_US 1
/* typedef of the timer object and the callback function */
typedef unsigned int(*TimerCB)(void*);
typedef void(*TimerCB)(void*);
typedef struct _TimerObject
{
int Type; // timer type