diff --git a/components/fpdebug/fpdbgwinclasses.pas b/components/fpdebug/fpdbgwinclasses.pas index bcad6b78ae..a192cc9abe 100644 --- a/components/fpdebug/fpdbgwinclasses.pas +++ b/components/fpdebug/fpdbgwinclasses.pas @@ -540,8 +540,6 @@ begin u := ''; LogLastError; end; - // Remove the \\?\ prefix - Delete(S,1,4); result := S; end; end; diff --git a/components/fpdebug/fpimgreaderbase.pas b/components/fpdebug/fpimgreaderbase.pas index 9dd18546d4..01e6a1783c 100644 --- a/components/fpdebug/fpimgreaderbase.pas +++ b/components/fpdebug/fpimgreaderbase.pas @@ -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}