Commit 9c3201ad authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

wbemprox: Use return length from NtQuerySystemInformationEx().

parent ab82ff09
......@@ -1533,7 +1533,7 @@ static UINT get_logical_processor_count( UINT *num_physical, UINT *num_packages
if (status != STATUS_INFO_LENGTH_MISMATCH) return get_processor_count();
if (!(buf = malloc( len ))) return get_processor_count();
status = NtQuerySystemInformationEx( SystemLogicalProcessorInformationEx, &all, sizeof(all), buf, len, NULL );
status = NtQuerySystemInformationEx( SystemLogicalProcessorInformationEx, &all, sizeof(all), buf, len, &len );
if (status != STATUS_SUCCESS)
{
free( buf );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment