Module: wine Branch: master Commit: 9c3201ad68e02b9917e6aa7360fb71da9f94b61d URL: https://source.winehq.org/git/wine.git/?a=commit;h=9c3201ad68e02b9917e6aa736...
Author: Brendan Shanks bshanks@codeweavers.com Date: Wed Jun 22 21:06:43 2022 -0700
wbemprox: Use return length from NtQuerySystemInformationEx().
---
dlls/wbemprox/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index 725f3816ad9..4ac52918f6f 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -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 );