1
0
mirror of synced 2024-09-07 21:45:03 +00:00

Fixed OS.Version for Delphi XE2

Resolved string typecast warning
This commit is contained in:
Mark van Renswoude 2014-12-31 09:36:39 +00:00
parent 868b443eae
commit d762903951
2 changed files with 3 additions and 1 deletions

View File

@ -359,7 +359,7 @@ begin
GetPropList(Strings.ClassInfo, tkStrings, pProps);
for iProp := 0 to iCount - 1 do begin
if VerQueryValue(pBuffer, PChar(string(cName) + '\' + pProps^[iProp]^.Name),
if VerQueryValue(pBuffer, PChar(string(cName) + '\' + string(pProps^[iProp]^.Name)),
Pointer(pValue), dVer) then
SetStrProp(Strings, pProps[iProp], pValue);
end;

View File

@ -14,6 +14,7 @@ uses
Windows;
type
{$IF CompilerVersion < 23}
TOSVersionInfoEx = packed record
dwOSVersionInfoSize: DWORD;
dwMajorVersion: DWORD;
@ -27,6 +28,7 @@ type
wProductType: Byte;
wReserved: Byte;
end;
{$IFEND}
//:$ Enumeration of the recognized Operating System versions