dxdiagn: PhysicalMemory parameter is a string not long long.
This commit is contained in:
parent
cc199b777e
commit
8ab96ba2dc
|
@ -300,7 +300,9 @@ static HRESULT DXDiag_InitDXDiagSystemInfoContainer(IDxDiagContainer* pSubCont)
|
||||||
GlobalMemoryStatusEx( &msex );
|
GlobalMemoryStatusEx( &msex );
|
||||||
V_VT(&v) = VT_UI8;
|
V_VT(&v) = VT_UI8;
|
||||||
V_UI8(&v) = msex.ullTotalPhys;
|
V_UI8(&v) = msex.ullTotalPhys;
|
||||||
|
VariantChangeType(&v, &v, 0, VT_BSTR);
|
||||||
IDxDiagContainerImpl_AddProp(pSubCont, ullPhysicalMemory, &v);
|
IDxDiagContainerImpl_AddProp(pSubCont, ullPhysicalMemory, &v);
|
||||||
|
VariantClear(&v);
|
||||||
|
|
||||||
info.dwOSVersionInfoSize = sizeof(info);
|
info.dwOSVersionInfoSize = sizeof(info);
|
||||||
GetVersionExW( &info );
|
GetVersionExW( &info );
|
||||||
|
|
Loading…
Reference in New Issue