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
1cc1ecf5
Commit
1cc1ecf5
authored
Feb 10, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
96aa7bcd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/dxdiagn/Makefile.in
+0
-1
container.c
dlls/dxdiagn/container.c
+4
-4
dxdiag_main.c
dlls/dxdiagn/dxdiag_main.c
+1
-1
provider.c
dlls/dxdiagn/provider.c
+3
-3
No files found.
dlls/dxdiagn/Makefile.in
View file @
1cc1ecf5
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
dxdiagn.dll
MODULE
=
dxdiagn.dll
IMPORTS
=
strmiids dxguid uuid d3d9 ddraw dsound version ole32 oleaut32 user32 advapi32
IMPORTS
=
strmiids dxguid uuid d3d9 ddraw dsound version ole32 oleaut32 user32 advapi32
...
...
dlls/dxdiagn/container.c
View file @
1cc1ecf5
...
@@ -56,7 +56,7 @@ static ULONG WINAPI IDxDiagContainerImpl_AddRef(IDxDiagContainer *iface)
...
@@ -56,7 +56,7 @@ static ULONG WINAPI IDxDiagContainerImpl_AddRef(IDxDiagContainer *iface)
IDxDiagContainerImpl
*
This
=
impl_from_IDxDiagContainer
(
iface
);
IDxDiagContainerImpl
*
This
=
impl_from_IDxDiagContainer
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
DXDIAGN_LockModule
();
DXDIAGN_LockModule
();
...
@@ -68,7 +68,7 @@ static ULONG WINAPI IDxDiagContainerImpl_Release(IDxDiagContainer *iface)
...
@@ -68,7 +68,7 @@ static ULONG WINAPI IDxDiagContainerImpl_Release(IDxDiagContainer *iface)
IDxDiagContainerImpl
*
This
=
impl_from_IDxDiagContainer
(
iface
);
IDxDiagContainerImpl
*
This
=
impl_from_IDxDiagContainer
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
if
(
!
refCount
)
{
IDxDiagProvider_Release
(
This
->
pProv
);
IDxDiagProvider_Release
(
This
->
pProv
);
...
@@ -101,7 +101,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(IDxDiagContai
...
@@ -101,7 +101,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumChildContainerNames(IDxDiagContai
IDxDiagContainerImpl_Container
*
p
;
IDxDiagContainerImpl_Container
*
p
;
DWORD
i
=
0
;
DWORD
i
=
0
;
TRACE
(
"(%p, %
u, %p, %
u)
\n
"
,
iface
,
dwIndex
,
pwszContainer
,
cchContainer
);
TRACE
(
"(%p, %
lu, %p, %l
u)
\n
"
,
iface
,
dwIndex
,
pwszContainer
,
cchContainer
);
if
(
NULL
==
pwszContainer
||
0
==
cchContainer
)
{
if
(
NULL
==
pwszContainer
||
0
==
cchContainer
)
{
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
@@ -214,7 +214,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(IDxDiagContainer *iface
...
@@ -214,7 +214,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_EnumPropNames(IDxDiagContainer *iface
IDxDiagContainerImpl_Property
*
p
;
IDxDiagContainerImpl_Property
*
p
;
DWORD
i
=
0
;
DWORD
i
=
0
;
TRACE
(
"(%p, %
u, %p, %
u)
\n
"
,
iface
,
dwIndex
,
pwszPropName
,
cchPropName
);
TRACE
(
"(%p, %
lu, %p, %l
u)
\n
"
,
iface
,
dwIndex
,
pwszPropName
,
cchPropName
);
if
(
NULL
==
pwszPropName
||
0
==
cchPropName
)
{
if
(
NULL
==
pwszPropName
||
0
==
cchPropName
)
{
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
...
dlls/dxdiagn/dxdiag_main.c
View file @
1cc1ecf5
...
@@ -42,7 +42,7 @@ LONG DXDIAGN_refCount = 0;
...
@@ -42,7 +42,7 @@ LONG DXDIAGN_refCount = 0;
/* At process attach */
/* At process attach */
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
{
TRACE
(
"%p,%x,%p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p,%
l
x,%p
\n
"
,
hInstDLL
,
fdwReason
,
lpvReserved
);
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
dxdiagn_instance
=
hInstDLL
;
dxdiagn_instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
...
...
dlls/dxdiagn/provider.c
View file @
1cc1ecf5
...
@@ -84,7 +84,7 @@ static ULONG WINAPI IDxDiagProviderImpl_AddRef(IDxDiagProvider *iface)
...
@@ -84,7 +84,7 @@ static ULONG WINAPI IDxDiagProviderImpl_AddRef(IDxDiagProvider *iface)
IDxDiagProviderImpl
*
This
=
impl_from_IDxDiagProvider
(
iface
);
IDxDiagProviderImpl
*
This
=
impl_from_IDxDiagProvider
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
-
1
);
DXDIAGN_LockModule
();
DXDIAGN_LockModule
();
...
@@ -96,7 +96,7 @@ static ULONG WINAPI IDxDiagProviderImpl_Release(IDxDiagProvider *iface)
...
@@ -96,7 +96,7 @@ static ULONG WINAPI IDxDiagProviderImpl_Release(IDxDiagProvider *iface)
IDxDiagProviderImpl
*
This
=
impl_from_IDxDiagProvider
(
iface
);
IDxDiagProviderImpl
*
This
=
impl_from_IDxDiagProvider
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->(ref before=%
l
u)
\n
"
,
This
,
refCount
+
1
);
if
(
!
refCount
)
{
if
(
!
refCount
)
{
free_information_tree
(
This
->
info_root
);
free_information_tree
(
This
->
info_root
);
...
@@ -825,7 +825,7 @@ static const WCHAR *vendor_id_to_manufacturer_string(DWORD vendor_id)
...
@@ -825,7 +825,7 @@ static const WCHAR *vendor_id_to_manufacturer_string(DWORD vendor_id)
return
vendors
[
i
].
name
;
return
vendors
[
i
].
name
;
}
}
FIXME
(
"Unknown PCI vendor ID 0x%04x.
\n
"
,
vendor_id
);
FIXME
(
"Unknown PCI vendor ID 0x%04
l
x.
\n
"
,
vendor_id
);
return
L"Unknown"
;
return
L"Unknown"
;
}
}
...
...
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