FHU: Fix WIN32 getcpu implementation

Both parameters to getcpu are nullable and FEX relies upon this for
CPUID.
This commit is contained in:
Billy Laws 2023-07-11 12:41:26 +01:00
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;
}