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
d846e49a
Commit
d846e49a
authored
Apr 29, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiag: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3efefad8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
19 deletions
+14
-19
Makefile.in
programs/dxdiag/Makefile.in
+2
-1
information.c
programs/dxdiag/information.c
+2
-4
main.c
programs/dxdiag/main.c
+9
-11
output.c
programs/dxdiag/output.c
+1
-3
No files found.
programs/dxdiag/Makefile.in
View file @
d846e49a
MODULE
=
dxdiag.exe
APPMODE
=
-mwindows
-municode
IMPORTS
=
dxguid ole32 oleaut32 user32
EXTRADLLFLAGS
=
-mwindows
-municode
-mno-cygwin
C_SRCS
=
\
information.c
\
main.c
\
...
...
programs/dxdiag/information.c
View file @
d846e49a
...
...
@@ -23,8 +23,6 @@
#include <dxdiag.h>
#include "wine/debug.h"
#include "wine/unicode.h"
#include "dxdiag_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
...
...
@@ -69,10 +67,10 @@ static BOOL property_to_string(IDxDiagContainer *container, const WCHAR *propert
{
WCHAR
*
bstr
=
V_BSTR
(
&
var
);
*
output
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
bstr
)
+
1
)
*
sizeof
(
WCHAR
));
*
output
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
l
strlenW
(
bstr
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
*
output
)
{
strcpyW
(
*
output
,
bstr
);
l
strcpyW
(
*
output
,
bstr
);
ret
=
TRUE
;
}
}
...
...
programs/dxdiag/main.c
View file @
d846e49a
...
...
@@ -23,8 +23,6 @@
#include <dxdiag.h>
#include "wine/debug.h"
#include "wine/unicode.h"
#include "dxdiag_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
...
...
@@ -61,7 +59,7 @@ static BOOL process_file_name(const WCHAR *cmdline, enum output_type output_type
cmdline
++
;
/* Ignore filename quoting, if any. */
if
(
*
cmdline
==
'"'
&&
(
endptr
=
strrchrW
(
cmdline
,
'"'
)))
if
(
*
cmdline
==
'"'
&&
(
endptr
=
wcsrchr
(
cmdline
,
'"'
)))
{
/* Reject a string with only one quote. */
if
(
cmdline
==
endptr
)
...
...
@@ -70,7 +68,7 @@ static BOOL process_file_name(const WCHAR *cmdline, enum output_type output_type
cmdline
++
;
}
else
endptr
=
cmdline
+
strlenW
(
cmdline
);
endptr
=
cmdline
+
l
strlenW
(
cmdline
);
len
=
endptr
-
cmdline
;
if
(
len
==
0
||
len
>=
filename_len
)
...
...
@@ -80,14 +78,14 @@ static BOOL process_file_name(const WCHAR *cmdline, enum output_type output_type
filename
[
len
]
=
'\0'
;
/* Append an extension appropriate for the output type if the filename does not have one. */
if
(
!
strrchrW
(
filename
,
'.'
))
if
(
!
wcsrchr
(
filename
,
'.'
))
{
const
WCHAR
*
filename_ext
=
get_output_extension
(
output_type
);
if
(
len
+
strlenW
(
filename_ext
)
>=
filename_len
)
if
(
len
+
l
strlenW
(
filename_ext
)
>=
filename_len
)
return
FALSE
;
strcatW
(
filename
,
filename_ext
);
l
strcatW
(
filename
,
filename_ext
);
}
return
TRUE
;
...
...
@@ -145,17 +143,17 @@ static BOOL process_command_line(const WCHAR *cmdline, struct command_line_info
ARRAY_SIZE
(
info
->
outfile
));
case
'W'
:
case
'w'
:
if
(
strncmpiW
(
cmdline
,
whql_colonW
,
5
))
if
(
wcsnicmp
(
cmdline
,
whql_colonW
,
5
))
return
FALSE
;
cmdline
+=
5
;
if
(
!
strncmpiW
(
cmdline
,
offW
,
3
))
if
(
!
wcsnicmp
(
cmdline
,
offW
,
3
))
{
info
->
whql_check
=
FALSE
;
cmdline
+=
2
;
}
else
if
(
!
strncmpiW
(
cmdline
,
onW
,
2
))
else
if
(
!
wcsnicmp
(
cmdline
,
onW
,
2
))
{
info
->
whql_check
=
TRUE
;
cmdline
++
;
...
...
@@ -167,7 +165,7 @@ static BOOL process_command_line(const WCHAR *cmdline, struct command_line_info
case
'd'
:
case
'D'
:
if
(
strncmpiW
(
cmdline
,
dontskipW
,
8
))
if
(
wcsnicmp
(
cmdline
,
dontskipW
,
8
))
return
FALSE
;
cmdline
+=
8
;
break
;
...
...
programs/dxdiag/output.c
View file @
d846e49a
...
...
@@ -26,8 +26,6 @@
#include <stdio.h>
#include "wine/debug.h"
#include "wine/unicode.h"
#include "dxdiag_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
...
...
@@ -98,7 +96,7 @@ static BOOL output_text_header(HANDLE hFile, const char *caption)
static
BOOL
output_text_field
(
HANDLE
hFile
,
const
char
*
field_name
,
DWORD
field_width
,
const
WCHAR
*
value
)
{
DWORD
value_lenW
=
strlenW
(
value
);
DWORD
value_lenW
=
l
strlenW
(
value
);
DWORD
value_lenA
=
WideCharToMultiByte
(
CP_ACP
,
0
,
value
,
value_lenW
,
NULL
,
0
,
NULL
,
NULL
);
DWORD
total_len
=
field_width
+
sizeof
(
": "
)
-
1
+
value_lenA
+
sizeof
(
crlf
);
char
sprintf_fmt
[
1
+
10
+
3
+
1
];
...
...
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