+ 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:
Jonas Maebe 2013-07-04 22:28:24 +00:00
parent 8368f7dba5
commit ab9036ecbf

View File

@ -97,10 +97,19 @@ begin
end; end;
end; end;
function ExpandUNCFileName (const filename:string) : string; 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 } { returns empty string on errors }
var var
s : widestring; s : unicodestring;
size : dword; size : dword;
rc : dword; rc : dword;
buf : pwidechar; buf : pwidechar;