mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
FHU: Fix WIN32 getcpu implementation
Both parameters to getcpu are nullable and FEX relies upon this for CPUID.
This commit is contained in:
1 parent
ddd6dbfdcc
commit
4e266cf9fd
1 file changed
+6
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user