server/snapshot.c and next_process
Rob Shearman
rob at codeweavers.com
Fri Jun 3 02:54:12 CDT 2005
Paul Vriens wrote:
>Hi,
>
>I'm busy fixing up NtQuerySystemInformation. I've added a trace statement
>at line 694:
>
>TRACE("Processname : (%s), size(%d)\n", wine_dbgstr_w(procname));
>
>This is because I want to change procname into a unicode string later on
>and just wanted to see what the content of procname is.
>
>The trace shows:
>
>trace:ntdll:NtQuerySystemInformation Processname :
>(L"Z:\\data\\install\\windows\\SysInternals\\process_explorer\\NT\\V9.11\\procexp.exe\n")
>
>Can somebody tell me where the extra '\n' comes from ?
>
>
procname isn't nul-terminated at that point. Either use wine_dbgstr_wn
or dump spi->pszProcessName after it is filled in instead.
Rob
More information about the wine-devel
mailing list