mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 18:31:53 +02:00
+ missing unicodestring version of ExpandUNCFileName
* make ansistring version of ExpandUNCFileName call the unicodestring version git-svn-id: branches/cpstrrtl@25045 -
This commit is contained in:
parent
8368f7dba5
commit
ab9036ecbf
@ -97,10 +97,19 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function ExpandUNCFileName (const filename:string) : string;
|
||||
var
|
||||
u: unicodestring;
|
||||
begin
|
||||
u:=ExpandUNCFileName(unicodestring(filename));
|
||||
widestringmanager.Unicode2AnsiMoveProc(punicodechar(u),result,DefaultRTLFileSystemCodePage,length(u));
|
||||
end;
|
||||
|
||||
function ExpandUNCFileName (const filename:unicodestring) : unicodestring;
|
||||
{ returns empty string on errors }
|
||||
var
|
||||
s : widestring;
|
||||
s : unicodestring;
|
||||
size : dword;
|
||||
rc : dword;
|
||||
buf : pwidechar;
|
||||
|
Loading…
Reference in New Issue
Block a user