[Bug 40425] PsList from Sysinternals crashes when trying to retrieve performance counter data

WineHQ Bugzilla wine-bugs at winehq.org
Mon Dec 21 15:44:58 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=40425

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|advapi32                    |kernel32
         Depends on|                            |33037
                URL|https://docs.microsoft.com/ |https://web.archive.org/web
                   |en-us/sysinternals/download |/20201207090557/https://dow
                   |s/pslist                    |nload.sysinternals.com/file
                   |                            |s/PSTools.zip

--- Comment #6 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

revisiting, obviously still present.

Adding dependency to bug 33037

Adding stable download link via Internet Archive:

https://web.archive.org/web/20201207090557/https://download.sysinternals.com/files/PSTools.zip

The crash is a follow-up problem, as already explained in my comment #5 

The corresponding code moved meanwhile to kernelbase:

https://source.winehq.org/git/wine.git/commitdiff/c7548d6c4fcc37844503f67d41e2a4bc2e429dcc
("advapi32: Move registry functions to kernelbase.")

Now here:

https://source.winehq.org/git/wine.git/blob/56e7cd12ce0ce3bb331a8595b25aedb811b79110:/dlls/kernelbase/registry.c#l1299

--- snip ---
1299 static DWORD query_perf_data(const WCHAR *query, DWORD *type, void *data,
DWORD *ret_size)
1300 {
1301     DWORD err, i, data_size;
1302     HKEY root;
1303     PERF_DATA_BLOCK *pdb;
1304 
1305     if (!ret_size)
1306         return ERROR_INVALID_PARAMETER;
1307 
1308     data_size = *ret_size;
1309     *ret_size = 0;
1310 
1311     if (type)
1312         *type = REG_BINARY;
1313 
1314     if (!data || data_size < sizeof(*pdb))
1315         return ERROR_MORE_DATA;
...
--- snip ---

$ wine --version
wine-6.0-rc3

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list