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
a43a1778
Commit
a43a1778
authored
Feb 15, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c7875729
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
Makefile.in
dlls/msdmo/Makefile.in
+0
-1
dmoreg.c
dlls/msdmo/dmoreg.c
+11
-11
dmort.c
dlls/msdmo/dmort.c
+2
-2
No files found.
dlls/msdmo/Makefile.in
View file @
a43a1778
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
msdmo.dll
MODULE
=
msdmo.dll
IMPORTLIB
=
msdmo
IMPORTLIB
=
msdmo
IMPORTS
=
dmoguids uuid ole32 user32 advapi32
IMPORTS
=
dmoguids uuid ole32 user32 advapi32
...
...
dlls/msdmo/dmoreg.c
View file @
a43a1778
...
@@ -204,7 +204,7 @@ lend:
...
@@ -204,7 +204,7 @@ lend:
RegCloseKey
(
hrkey
);
RegCloseKey
(
hrkey
);
hres
=
HRESULT_FROM_WIN32
(
ret
);
hres
=
HRESULT_FROM_WIN32
(
ret
);
TRACE
(
" hresult=0x%08x
\n
"
,
hres
);
TRACE
(
" hresult=0x%08
l
x
\n
"
,
hres
);
return
hres
;
return
hres
;
}
}
...
@@ -398,7 +398,7 @@ static ULONG WINAPI IEnumDMO_fnAddRef(IEnumDMO * iface)
...
@@ -398,7 +398,7 @@ static ULONG WINAPI IEnumDMO_fnAddRef(IEnumDMO * iface)
{
{
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
refCount
);
TRACE
(
"(%p)->(%
l
d)
\n
"
,
This
,
refCount
);
return
refCount
;
return
refCount
;
}
}
...
@@ -431,7 +431,7 @@ static ULONG WINAPI IEnumDMO_fnRelease(IEnumDMO * iface)
...
@@ -431,7 +431,7 @@ static ULONG WINAPI IEnumDMO_fnRelease(IEnumDMO * iface)
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
refCount
);
TRACE
(
"(%p)->(%
l
d)
\n
"
,
This
,
refCount
);
if
(
!
refCount
)
if
(
!
refCount
)
{
{
...
@@ -483,7 +483,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
...
@@ -483,7 +483,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
TRACE
(
"(%p)->(%d %p %p %p)
\n
"
,
This
,
cItemsToFetch
,
pCLSID
,
Names
,
pcItemsFetched
);
TRACE
(
"(%p)->(%
l
d %p %p %p)
\n
"
,
This
,
cItemsToFetch
,
pCLSID
,
Names
,
pcItemsFetched
);
if
(
!
pCLSID
)
if
(
!
pCLSID
)
return
E_POINTER
;
return
E_POINTER
;
...
@@ -550,7 +550,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
...
@@ -550,7 +550,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
}
}
for
(
i
=
0
;
i
<
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
);
++
i
)
for
(
i
=
0
;
i
<
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
);
++
i
)
TRACE
(
"intype %d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
types
[
i
].
type
),
TRACE
(
"intype %
l
d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
types
[
i
].
type
),
debugstr_guid
(
&
types
[
i
].
subtype
));
debugstr_guid
(
&
types
[
i
].
subtype
));
if
(
!
any_types_match
(
types
,
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
),
This
->
pInTypes
,
This
->
cInTypes
))
if
(
!
any_types_match
(
types
,
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
),
This
->
pInTypes
,
This
->
cInTypes
))
...
@@ -586,7 +586,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
...
@@ -586,7 +586,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
}
}
for
(
i
=
0
;
i
<
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
);
++
i
)
for
(
i
=
0
;
i
<
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
);
++
i
)
TRACE
(
"outtype %d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
types
[
i
].
type
),
TRACE
(
"outtype %
l
d: type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
types
[
i
].
type
),
debugstr_guid
(
&
types
[
i
].
subtype
));
debugstr_guid
(
&
types
[
i
].
subtype
));
if
(
!
any_types_match
(
types
,
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
),
This
->
pOutTypes
,
This
->
cOutTypes
))
if
(
!
any_types_match
(
types
,
size
/
sizeof
(
DMO_PARTIAL_MEDIATYPE
),
This
->
pOutTypes
,
This
->
cOutTypes
))
...
@@ -633,7 +633,7 @@ static HRESULT WINAPI IEnumDMO_fnSkip(IEnumDMO * iface, DWORD cItemsToSkip)
...
@@ -633,7 +633,7 @@ static HRESULT WINAPI IEnumDMO_fnSkip(IEnumDMO * iface, DWORD cItemsToSkip)
{
{
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
cItemsToSkip
);
TRACE
(
"(%p)->(%
l
d)
\n
"
,
This
,
cItemsToSkip
);
This
->
index
+=
cItemsToSkip
;
This
->
index
+=
cItemsToSkip
;
return
S_OK
;
return
S_OK
;
...
@@ -680,7 +680,7 @@ HRESULT WINAPI DMOEnum(
...
@@ -680,7 +680,7 @@ HRESULT WINAPI DMOEnum(
const
DMO_PARTIAL_MEDIATYPE
*
pOutTypes
,
const
DMO_PARTIAL_MEDIATYPE
*
pOutTypes
,
IEnumDMO
**
ppEnum
)
IEnumDMO
**
ppEnum
)
{
{
TRACE
(
"%s 0x%08
x %d %p %
d %p %p
\n
"
,
debugstr_guid
(
category
),
flags
,
cInTypes
,
pInTypes
,
TRACE
(
"%s 0x%08
lx %ld %p %l
d %p %p
\n
"
,
debugstr_guid
(
category
),
flags
,
cInTypes
,
pInTypes
,
cOutTypes
,
pOutTypes
,
ppEnum
);
cOutTypes
,
pOutTypes
,
ppEnum
);
if
(
TRACE_ON
(
msdmo
))
if
(
TRACE_ON
(
msdmo
))
...
@@ -689,13 +689,13 @@ HRESULT WINAPI DMOEnum(
...
@@ -689,13 +689,13 @@ HRESULT WINAPI DMOEnum(
if
(
cInTypes
)
if
(
cInTypes
)
{
{
for
(
i
=
0
;
i
<
cInTypes
;
i
++
)
for
(
i
=
0
;
i
<
cInTypes
;
i
++
)
TRACE
(
"intype %d - type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pInTypes
[
i
].
type
),
TRACE
(
"intype %
l
d - type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pInTypes
[
i
].
type
),
debugstr_guid
(
&
pInTypes
[
i
].
subtype
));
debugstr_guid
(
&
pInTypes
[
i
].
subtype
));
}
}
if
(
cOutTypes
)
{
if
(
cOutTypes
)
{
for
(
i
=
0
;
i
<
cOutTypes
;
i
++
)
for
(
i
=
0
;
i
<
cOutTypes
;
i
++
)
TRACE
(
"outtype %d - type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pOutTypes
[
i
].
type
),
TRACE
(
"outtype %
l
d - type %s, subtype %s
\n
"
,
i
,
debugstr_guid
(
&
pOutTypes
[
i
].
type
),
debugstr_guid
(
&
pOutTypes
[
i
].
subtype
));
debugstr_guid
(
&
pOutTypes
[
i
].
subtype
));
}
}
}
}
...
@@ -727,7 +727,7 @@ HRESULT WINAPI DMOGetTypes(REFCLSID clsid, ULONG input_count, ULONG *ret_input_c
...
@@ -727,7 +727,7 @@ HRESULT WINAPI DMOGetTypes(REFCLSID clsid, ULONG input_count, ULONG *ret_input_c
LSTATUS
ret
;
LSTATUS
ret
;
DWORD
size
;
DWORD
size
;
TRACE
(
"clsid %s, input_count %
u, ret_input_count %p, input %p, output_count %
u, ret_output_count %p, output %p.
\n
"
,
TRACE
(
"clsid %s, input_count %
lu, ret_input_count %p, input %p, output_count %l
u, ret_output_count %p, output %p.
\n
"
,
debugstr_guid
(
clsid
),
input_count
,
ret_input_count
,
input
,
output_count
,
ret_output_count
,
output
);
debugstr_guid
(
clsid
),
input_count
,
ret_input_count
,
input
,
output_count
,
ret_output_count
,
output
);
if
(
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
L"DirectShow
\\
MediaObjects"
,
0
,
KEY_READ
,
&
root
))
if
(
RegOpenKeyExW
(
HKEY_CLASSES_ROOT
,
L"DirectShow
\\
MediaObjects"
,
0
,
KEY_READ
,
&
root
))
...
...
dlls/msdmo/dmort.c
View file @
a43a1778
...
@@ -39,7 +39,7 @@ HRESULT WINAPI MoCreateMediaType(DMO_MEDIA_TYPE** ppmedia, DWORD cbFormat)
...
@@ -39,7 +39,7 @@ HRESULT WINAPI MoCreateMediaType(DMO_MEDIA_TYPE** ppmedia, DWORD cbFormat)
{
{
HRESULT
r
;
HRESULT
r
;
TRACE
(
"%p %u
\n
"
,
ppmedia
,
cbFormat
);
TRACE
(
"%p %
l
u
\n
"
,
ppmedia
,
cbFormat
);
if
(
!
ppmedia
)
if
(
!
ppmedia
)
return
E_POINTER
;
return
E_POINTER
;
...
@@ -65,7 +65,7 @@ HRESULT WINAPI MoCreateMediaType(DMO_MEDIA_TYPE** ppmedia, DWORD cbFormat)
...
@@ -65,7 +65,7 @@ HRESULT WINAPI MoCreateMediaType(DMO_MEDIA_TYPE** ppmedia, DWORD cbFormat)
*/
*/
HRESULT
WINAPI
MoInitMediaType
(
DMO_MEDIA_TYPE
*
pmedia
,
DWORD
cbFormat
)
HRESULT
WINAPI
MoInitMediaType
(
DMO_MEDIA_TYPE
*
pmedia
,
DWORD
cbFormat
)
{
{
TRACE
(
"%p %u
\n
"
,
pmedia
,
cbFormat
);
TRACE
(
"%p %
l
u
\n
"
,
pmedia
,
cbFormat
);
if
(
!
pmedia
)
if
(
!
pmedia
)
return
E_POINTER
;
return
E_POINTER
;
...
...
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