mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-03-03 20:17:13 +00:00
FHU: Fix WIN32 getcpu implementation
Both parameters to getcpu are nullable and FEX relies upon this for CPUID.
This commit is contained in:
parent
ddd6dbfdcc
commit
4e266cf9fd
@ -98,8 +98,12 @@ inline int32_t pidfd_open(pid_t pid, unsigned int flags) {
|
||||
#else
|
||||
|
||||
inline int32_t getcpu(uint32_t *cpu, uint32_t *node) {
|
||||
*cpu = GetCurrentProcessorNumber();
|
||||
*node = 0;
|
||||
if (cpu) {
|
||||
*cpu = GetCurrentProcessorNumber();
|
||||
}
|
||||
if (node) {
|
||||
*node = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user