Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a7f8adb5
Commit
a7f8adb5
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiag: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8008c7d7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
Makefile.in
programs/dxdiag/Makefile.in
+0
-1
information.c
programs/dxdiag/information.c
+1
-1
output.c
programs/dxdiag/output.c
+3
-3
No files found.
programs/dxdiag/Makefile.in
View file @
a7f8adb5
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
dxdiag.exe
MODULE
=
dxdiag.exe
IMPORTS
=
dxguid ole32 oleaut32 user32 comctl32
IMPORTS
=
dxguid ole32 oleaut32 user32 comctl32
...
...
programs/dxdiag/information.c
View file @
a7f8adb5
...
@@ -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%08
l
x
\n
"
,
hr
);
goto
error
;
goto
error
;
}
}
...
...
programs/dxdiag/output.c
View file @
a7f8adb5
...
@@ -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
,
"%%%
l
us: "
,
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 %
l
u
\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%08
l
x
\n
"
,
hr
);
goto
error
;
goto
error
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment