Commit 059ba68e authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dxdiagn: Use I64 width modifier for 64-bit integers in printf.

parent 4d7eccd6
......@@ -685,7 +685,7 @@ static HRESULT build_systeminfo_tree(IDxDiagContainerImpl_Container *node)
return hr;
/* FIXME: Roundoff should not be done with truncated division. */
swprintf(print_buf, ARRAY_SIZE(print_buf), L"%uMB RAM", (DWORD)(msex.ullTotalPhys / (1024 * 1024)));
swprintf(print_buf, ARRAY_SIZE(print_buf), L"%I64uMB RAM", msex.ullTotalPhys / (1024 * 1024));
hr = add_bstr_property(node, L"szPhysicalMemoryEnglish", print_buf);
if (FAILED(hr))
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment