dxdiag: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-04 09:56:19 +01:00 committed by Alexandre Julliard
parent 8008c7d7cf
commit a7f8adb5e3
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = dxdiag.exe MODULE = dxdiag.exe
IMPORTS = dxguid ole32 oleaut32 user32 comctl32 IMPORTS = dxguid ole32 oleaut32 user32 comctl32

View File

@ -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;
} }

View File

@ -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
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
&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;
} }