-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[NTOS:PS] Implement ProcessImageFileNameWin32
information class
#7942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
ObjectNameInformation->Name.MaximumLength); | ||
} else | ||
{ | ||
ImageName->Buffer = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe set also ImageName->Length = 0;
just to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's unnecessary, because if MaximumLength
is zero but Length
is nonzero, this means IoQueryFileDosDeviceName
went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ReactOS, anything can go wrong :). Please put an ASSERT here.
f555d6a
to
10a2aac
Compare
This build error seems not related to code. |
It's a usual glitch, we just need to retry the build. |
Length = ObjectNameInformation->Name.MaximumLength + sizeof(OBJECT_NAME_INFORMATION); | ||
if (Length <= ProcessInformationLength) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This calculates the required size as string length + sizeof(OBJECT_NAME_INFORMATION)
, but below it copies a UNICODE_STRING
+ the string data.
Purpose
Implement
ProcessImageFileNameWin32
information class ofNtQueryInformationProcess
.JIRA issue: CORE-16145.
This issue is about
QueryFullProcessImageName
, but this PR is the key to fix it.Proposed changes
ProcessImageFileNameWin32
on NT6+ target.TODO
Apitest will be added on the further PR (about
QueryFullProcessImageName
, WIP, not submitted yet).Testbot runs (Filled in by Devs)