lazutils: fixed dangling pointer

git-svn-id: trunk@50646 -
This commit is contained in:
mattias 2015-12-05 14:08:46 +00:00
parent 51db04d913
commit 82b946cccb

View File

@ -355,7 +355,7 @@ Const
(HIGH_PRIORITY_CLASS,IDLE_PRIORITY_CLASS,
NORMAL_PRIORITY_CLASS,REALTIME_PRIORITY_CLASS);
function WStrAsUniquePWideChar(s: UnicodeString): PWideChar; inline;
function WStrAsUniquePWideChar(var s: UnicodeString): PWideChar; inline;
begin
UniqueString(s);
if s<>'' then