Unicode compatibility for App.Version.Strings
This commit is contained in:
parent
2bf7ac5bf9
commit
2ff0f544d3
@ -199,7 +199,7 @@ uses
|
|||||||
Windows;
|
Windows;
|
||||||
|
|
||||||
const
|
const
|
||||||
tkStrings = [tkString, tkLString, tkWString];
|
tkStrings = [tkString, tkLString, tkWString{$IF CompilerVersion >= 23}, tkUString{$IFEND}];
|
||||||
|
|
||||||
var
|
var
|
||||||
GApp: TX2App;
|
GApp: TX2App;
|
||||||
@ -359,8 +359,8 @@ begin
|
|||||||
GetPropList(Strings.ClassInfo, tkStrings, pProps);
|
GetPropList(Strings.ClassInfo, tkStrings, pProps);
|
||||||
|
|
||||||
for iProp := 0 to iCount - 1 do begin
|
for iProp := 0 to iCount - 1 do begin
|
||||||
if VerQueryValueA(pBuffer, PAnsiChar(cName + AnsiString('\') + pProps^[iProp]^.Name),
|
if VerQueryValue(pBuffer, PChar(string(cName) + '\' + pProps^[iProp]^.Name),
|
||||||
Pointer(pValue), dVer) then
|
Pointer(pValue), dVer) then
|
||||||
SetStrProp(Strings, pProps[iProp], pValue);
|
SetStrProp(Strings, pProps[iProp], pValue);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Loading…
Reference in New Issue
Block a user