Skip to content

Commit bf30fcf

Browse files
committed
Fix PhSearchFilePath regression from commit 5b64e80
1 parent dc51c36 commit bf30fcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phlib/util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5143,6 +5143,8 @@ PPH_STRING PhSearchFilePath(
51435143
if (returnLength == 0 && returnLength <= bufferSize)
51445144
goto CleanupExit;
51455145

5146+
PhTrimToNullTerminatorString(fullPath);
5147+
51465148
// Make sure this is not a directory.
51475149

51485150
if (!NT_SUCCESS(PhQueryAttributesFileWin32(fullPath->Buffer, &basicInfo)))

0 commit comments

Comments
 (0)