Fixed OS.Version for Delphi XE2
Resolved string typecast warning
This commit is contained in:
parent
868b443eae
commit
d762903951
@ -359,7 +359,7 @@ 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 VerQueryValue(pBuffer, PChar(string(cName) + '\' + pProps^[iProp]^.Name),
|
if VerQueryValue(pBuffer, PChar(string(cName) + '\' + string(pProps^[iProp]^.Name)),
|
||||||
Pointer(pValue), dVer) then
|
Pointer(pValue), dVer) then
|
||||||
SetStrProp(Strings, pProps[iProp], pValue);
|
SetStrProp(Strings, pProps[iProp], pValue);
|
||||||
end;
|
end;
|
||||||
|
@ -14,6 +14,7 @@ uses
|
|||||||
Windows;
|
Windows;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
{$IF CompilerVersion < 23}
|
||||||
TOSVersionInfoEx = packed record
|
TOSVersionInfoEx = packed record
|
||||||
dwOSVersionInfoSize: DWORD;
|
dwOSVersionInfoSize: DWORD;
|
||||||
dwMajorVersion: DWORD;
|
dwMajorVersion: DWORD;
|
||||||
@ -27,6 +28,7 @@ type
|
|||||||
wProductType: Byte;
|
wProductType: Byte;
|
||||||
wReserved: Byte;
|
wReserved: Byte;
|
||||||
end;
|
end;
|
||||||
|
{$IFEND}
|
||||||
|
|
||||||
|
|
||||||
//:$ Enumeration of the recognized Operating System versions
|
//:$ Enumeration of the recognized Operating System versions
|
||||||
|
Loading…
Reference in New Issue
Block a user