msvcr110: Create current scheduler in _CurrentScheduler::_GetNumberOfVirtualProcessors.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2018-07-17 15:49:10 -07:00 committed by Alexandre Julliard
parent 8ae5352a72
commit 16f9a9e122
2 changed files with 3 additions and 2 deletions

View File

@ -67,9 +67,9 @@ static void test_CurrentScheduler(void)
GetSystemInfo(&si); GetSystemInfo(&si);
expect = si.dwNumberOfProcessors; expect = si.dwNumberOfProcessors;
ncpus = p__CurrentScheduler__GetNumberOfVirtualProcessors(); ncpus = p__CurrentScheduler__GetNumberOfVirtualProcessors();
todo_wine ok(ncpus == expect, "expected %u, got %u\n", expect, ncpus); ok(ncpus == expect, "expected %u, got %u\n", expect, ncpus);
ncpus = p_CurrentScheduler_GetNumberOfVirtualProcessors(); ncpus = p_CurrentScheduler_GetNumberOfVirtualProcessors();
todo_wine ok(ncpus == expect, "expected %u, got %u\n", expect, ncpus); ok(ncpus == expect, "expected %u, got %u\n", expect, ncpus);
} }
static void test_setlocale(void) static void test_setlocale(void)

View File

@ -1063,6 +1063,7 @@ _Scheduler* __cdecl _CurrentScheduler__Get(_Scheduler *ret)
unsigned int __cdecl _CurrentScheduler__GetNumberOfVirtualProcessors(void) unsigned int __cdecl _CurrentScheduler__GetNumberOfVirtualProcessors(void)
{ {
TRACE("()\n"); TRACE("()\n");
get_current_scheduler();
return CurrentScheduler_GetNumberOfVirtualProcessors(); return CurrentScheduler_GetNumberOfVirtualProcessors();
} }