22 Oct
2012
22 Oct
'12
9:43 a.m.
James Eder <jimportal(a)gmail.com> writes:
@@ -1010,6 +1010,16 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info) */ void fill_cpu_info(void) { + long num; + + num = sysconf(_SC_NPROCESSORS_ONLN); + if (num < 1) + { + num = 1; + WARN("Failed to detect the number of processors.\n"); + } + NtCurrentTeb()->Peb->NumberOfProcessors = num;
Have you verified that this works correctly on all the platforms you are changing? -- Alexandre Julliard julliard(a)winehq.org