We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61dba75 commit 02ab651Copy full SHA for 02ab651
phlib/util.c
@@ -2592,18 +2592,16 @@ NTSTATUS PhCreateProcessWin32Ex(
2592
LocalFree(cmdlineArgList);
2593
}
2594
2595
- if (!RtlDoesFileExists_U(fileName->Buffer))
+ if (fileName && !RtlDoesFileExists_U(fileName->Buffer))
2596
{
2597
WCHAR buffer[MAX_PATH];
2598
2599
// The user typed a name without a path so attempt to locate the executable.
2600
if (PhSearchFilePath(fileName->Buffer, L".exe", buffer))
2601
PhMoveReference(&fileName, PhCreateString(buffer));
2602
else
2603
- fileName = NULL;
+ PhClearReference(&fileName);
2604
2605
- else
2606
2607
2608
2609
newFlags = 0;
0 commit comments