FpDebug: keep "\\?\" filenames.

This commit is contained in:
Martin 2024-04-11 13:27:34 +02:00
parent 1aef153d5f
commit 655727ed2b
2 changed files with 2 additions and 4 deletions

View File

@ -540,8 +540,6 @@ begin
u := '';
LogLastError;
end;
// Remove the \\?\ prefix
Delete(S,1,4);
result := S;
end;
end;

View File

@ -260,8 +260,8 @@ begin
SetLength(U, MAX_PATH+1);
SetLength(U, GetFinalPathNameByHandle(Handle, @U[1], Length(U), 0));
if Copy(U, 1, 4)='\\?\' then
Delete(U, 1, 4);
// if Copy(U, 1, 4)='\\?\' then
// Delete(U, 1, 4);
Result := U;
end;
{$endif}