[Bug 47242] ReactOS 0.4.11-dev-603+ installer can' t find file because NtQueryInformationProcess doesn' t handle ProcessImageFileName properly

wine-bugs at winehq.org wine-bugs at winehq.org
Wed May 22 02:09:18 CDT 2019


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

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |download, Installer
                URL|                            |https://web.archive.org/web
                   |                            |/20190102014839/https://iso
                   |                            |.reactos.org/bootcd/reactos
                   |                            |-bootcd-0.4.11-dev-603-g4bf
                   |                            |9f6f-x86-msvc-win-dbg.7z
            Summary|ReactOS installer can't     |ReactOS 0.4.11-dev-603+
                   |find file because           |installer can't find file
                   |NtQueryInformationProcess   |because
                   |doesn't handle              |NtQueryInformationProcess
                   |ProcessImageFileName        |doesn't handle
                   |properly                    |ProcessImageFileName
                   |                            |properly
                 CC|                            |focht at gmx.net

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

confirming.

I've added a download link for the installer ISO:

https://web.archive.org/web/20190102014839/https://iso.reactos.org/bootcd/reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.7z

https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/ntdll/process.c#l536

--- snip ---
 193
/******************************************************************************
 194 *  NtQueryInformationProcess            [NTDLL.@]
 195 *  ZwQueryInformationProcess            [NTDLL.@]
 196 *
 197 */
 198 NTSTATUS WINAPI NtQueryInformationProcess(
 199         IN HANDLE ProcessHandle,
 200         IN PROCESSINFOCLASS ProcessInformationClass,
 201         OUT PVOID ProcessInformation,
 202         IN ULONG ProcessInformationLength,
 203         OUT PULONG ReturnLength)
 204 {
 205     NTSTATUS ret = STATUS_SUCCESS;
 206     ULONG len = 0;
 207 
 208     TRACE("(%p,0x%08x,%p,0x%08x,%p)\n",
 209           ProcessHandle,ProcessInformationClass,
 210           ProcessInformation,ProcessInformationLength,
 211           ReturnLength);
 212 
 213     switch (ProcessInformationClass) 
 214     {
...
 536     case ProcessImageFileName:
 537         /* FIXME: Should return a device path */
 538     case ProcessImageFileNameWin32:
 539         SERVER_START_REQ(get_dll_info)
 540         {
 541             UNICODE_STRING *image_file_name_str = ProcessInformation;
 542 
 543             req->handle = wine_server_obj_handle( ProcessHandle );
 544             req->base_address = 0; /* main module */
 545             wine_server_set_reply( req, image_file_name_str ?
image_file_name_str + 1 : NULL,
 546                                    ProcessInformationLength >
sizeof(UNICODE_STRING) ? ProcessInformationLength - sizeof(UNICODE_STRING) : 0
);
 547             ret = wine_server_call( req );
 548             if (ret == STATUS_BUFFER_TOO_SMALL) ret =
STATUS_INFO_LENGTH_MISMATCH;
 549 
 550             len = sizeof(UNICODE_STRING) + reply->filename_len;
 551             if (ret == STATUS_SUCCESS)
 552             {
 553                 image_file_name_str->MaximumLength =
image_file_name_str->Length = reply->filename_len;
 554                 image_file_name_str->Buffer = (PWSTR)(image_file_name_str
+ 1);
 555             }
 556         }
 557         SERVER_END_REQ;
 558         break;
--- snip --

$ sha1sum reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.*
bcb4c544c61ddf899ccd0266cdc8f40cc8dfa96d 
reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.7z
bc0293827c84f6402cbcb39c1628f38ff16ef651 
reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.iso

$ du -sh reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.*
55M    reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.7z
73M    reactos-bootcd-0.4.11-dev-603-g4bf9f6f-x86-msvc-win-dbg.iso

$ wine --version
wine-4.8-296-g6a610a3258

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