Commit a7f8adb5 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dxdiag: Enable compilation with long types.

parent 8008c7d7
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = dxdiag.exe MODULE = dxdiag.exe
IMPORTS = dxguid ole32 oleaut32 user32 comctl32 IMPORTS = dxguid ole32 oleaut32 user32 comctl32
......
...@@ -190,7 +190,7 @@ struct dxdiag_information *collect_dxdiag_information(BOOL whql_check) ...@@ -190,7 +190,7 @@ struct dxdiag_information *collect_dxdiag_information(BOOL whql_check)
&IID_IDxDiagProvider, (void **)&pddp); &IID_IDxDiagProvider, (void **)&pddp);
if (FAILED(hr)) if (FAILED(hr))
{ {
WINE_ERR("IDxDiagProvider instance creation failed with 0x%08x\n", hr); WINE_ERR("IDxDiagProvider instance creation failed with 0x%08lx\n", hr);
goto error; goto error;
} }
......
...@@ -85,7 +85,7 @@ static BOOL output_text_field(HANDLE hFile, const char *field_name, DWORD field_ ...@@ -85,7 +85,7 @@ static BOOL output_text_field(HANDLE hFile, const char *field_name, DWORD field_
assert(total_len <= sizeof(output_buffer)); assert(total_len <= sizeof(output_buffer));
sprintf(sprintf_fmt, "%%%us: ", field_width); sprintf(sprintf_fmt, "%%%lus: ", field_width);
ptr += sprintf(ptr, sprintf_fmt, field_name); ptr += sprintf(ptr, sprintf_fmt, field_name);
ptr += WideCharToMultiByte(CP_ACP, 0, value, value_lenW, ptr, value_lenA, NULL, NULL); ptr += WideCharToMultiByte(CP_ACP, 0, value, value_lenW, ptr, value_lenA, NULL, NULL);
...@@ -153,7 +153,7 @@ static BOOL output_text_information(struct dxdiag_information *dxdiag_info, cons ...@@ -153,7 +153,7 @@ static BOOL output_text_information(struct dxdiag_information *dxdiag_info, cons
NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE) if (hFile == INVALID_HANDLE_VALUE)
{ {
WINE_ERR("File creation failed, last error %u\n", GetLastError()); WINE_ERR("File creation failed, last error %lu\n", GetLastError());
return FALSE; return FALSE;
} }
...@@ -277,7 +277,7 @@ static BOOL output_xml_information(struct dxdiag_information *dxdiag_info, const ...@@ -277,7 +277,7 @@ static BOOL output_xml_information(struct dxdiag_information *dxdiag_info, const
&IID_IXMLDOMDocument, (void **)&xmldoc); &IID_IXMLDOMDocument, (void **)&xmldoc);
if (FAILED(hr)) if (FAILED(hr))
{ {
WINE_ERR("IXMLDOMDocument instance creation failed with 0x%08x\n", hr); WINE_ERR("IXMLDOMDocument instance creation failed with 0x%08lx\n", hr);
goto error; goto error;
} }
......
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