From: Louis Lenders <xerox.xerox2000x(a)gmail.com> Found this while doing a few tests invoking methods in powershell core. (Simple way to reproduce is install powershell core https://github.com/PowerShell/PowerShell/releases/download/v7.5.3/PowerShell... and then do: wine pwsh -c '$binarySD = @($null); [void]([wmiclass]"__SystemSecurity").InvokeMethod("getSD",$binarySD); $binarySD' ) # Please enter the commit message for your changes. Lines starting --- dlls/wbemprox/table.c | 2 +- dlls/wbemprox/tests/query.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wbemprox/table.c b/dlls/wbemprox/table.c index 53274eb1b90..92b2624aa69 100644 --- a/dlls/wbemprox/table.c +++ b/dlls/wbemprox/table.c @@ -274,7 +274,7 @@ HRESULT get_method( const struct table *table, const WCHAR *name, class_method * { for (j = 0; j < table->num_cols; j++) { - if (table->columns[j].type & COL_FLAG_METHOD && !wcscmp( table->columns[j].name, name )) + if (table->columns[j].type & COL_FLAG_METHOD && !wcsicmp( table->columns[j].name, name )) { HRESULT hr; LONGLONG val; diff --git a/dlls/wbemprox/tests/query.c b/dlls/wbemprox/tests/query.c index 6b872a34be9..d93ea1ca7ca 100644 --- a/dlls/wbemprox/tests/query.c +++ b/dlls/wbemprox/tests/query.c @@ -1447,7 +1447,7 @@ static void test_SystemSecurity( IWbemServices *services ) ok( ret, "CreateWellKnownSid failed\n" ); out = NULL; - method = SysAllocString( L"GetSD" ); + method = SysAllocString( L"gETsd" ); /* Also test case insensitivity here */ hr = IWbemServices_ExecMethod( services, class, method, 0, NULL, NULL, &out, NULL ); ok( hr == S_OK || hr == WBEM_E_ACCESS_DENIED, "failed to execute method %#lx\n", hr ); SysFreeString( method ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9563