Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2a1da89f
Commit
2a1da89f
authored
Jun 04, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
351ffd93
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
34 deletions
+32
-34
Makefile.in
dlls/dxdiagn/Makefile.in
+2
-0
container.c
dlls/dxdiagn/container.c
+5
-7
dxdiag_main.c
dlls/dxdiagn/dxdiag_main.c
+0
-1
provider.c
dlls/dxdiagn/provider.c
+25
-26
No files found.
dlls/dxdiagn/Makefile.in
View file @
2a1da89f
MODULE
=
dxdiagn.dll
IMPORTS
=
strmiids dxguid uuid d3d9 ddraw version ole32 oleaut32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
container.c
\
dxdiag_main.c
\
...
...
dlls/dxdiagn/container.c
View file @
2a1da89f
...
...
@@ -19,12 +19,10 @@
*
*/
#include "config.h"
#define COBJMACROS
#include "dxdiag_private.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
...
...
@@ -114,7 +112,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(IDxDiagContai
if
(
dwIndex
==
i
)
{
TRACE
(
"Found container name %s, copying string
\n
"
,
debugstr_w
(
p
->
contName
));
lstrcpynW
(
pwszContainer
,
p
->
contName
,
cchContainer
);
return
(
cchContainer
<=
strlenW
(
p
->
contName
))
?
return
(
cchContainer
<=
l
strlenW
(
p
->
contName
))
?
DXDIAG_E_INSUFFICIENT_BUFFER
:
S_OK
;
}
++
i
;
...
...
@@ -157,12 +155,12 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(IDxDiagContainer *i
*
ppInstance
=
NULL
;
tmp_len
=
strlenW
(
pwszContainer
)
+
1
;
tmp_len
=
l
strlenW
(
pwszContainer
)
+
1
;
orig_tmp
=
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
tmp_len
*
sizeof
(
WCHAR
));
if
(
NULL
==
tmp
)
return
E_FAIL
;
lstrcpynW
(
tmp
,
pwszContainer
,
tmp_len
);
cur
=
strchrW
(
tmp
,
'.'
);
cur
=
wcschr
(
tmp
,
'.'
);
while
(
NULL
!=
cur
)
{
*
cur
=
'\0'
;
/* cut tmp string to '.' */
if
(
!*
(
cur
+
1
))
break
;
/* Account for a lone terminating period, as in "cont1.cont2.". */
...
...
@@ -172,7 +170,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(IDxDiagContainer *i
goto
on_error
;
cur
++
;
/* go after '.' (just replaced by \0) */
tmp
=
cur
;
cur
=
strchrW
(
tmp
,
'.'
);
cur
=
wcschr
(
tmp
,
'.'
);
}
TRACE
(
"Trying to get container %s
\n
"
,
debugstr_w
(
tmp
));
...
...
@@ -219,7 +217,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(IDxDiagContainer *iface
if
(
dwIndex
==
i
)
{
TRACE
(
"Found property name %s, copying string
\n
"
,
debugstr_w
(
p
->
propName
));
lstrcpynW
(
pwszPropName
,
p
->
propName
,
cchPropName
);
return
(
cchPropName
<=
strlenW
(
p
->
propName
))
?
return
(
cchPropName
<=
l
strlenW
(
p
->
propName
))
?
DXDIAG_E_INSUFFICIENT_BUFFER
:
S_OK
;
}
++
i
;
...
...
dlls/dxdiagn/dxdiag_main.c
View file @
2a1da89f
...
...
@@ -21,7 +21,6 @@
#define COBJMACROS
#include "config.h"
#include <stdarg.h>
#include "windef.h"
...
...
dlls/dxdiagn/provider.c
View file @
2a1da89f
This diff is collapsed.
Click to expand it.
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