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
c64432ce
Commit
c64432ce
authored
Jul 02, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CoCreateInstance instead of SHCoCreateInstance, drop shell32 from
imports. Call OleInitialize() on AVIFileInit.
parent
7016ea79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
Makefile.in
dlls/avifil32/Makefile.in
+1
-1
api.c
dlls/avifil32/api.c
+5
-8
No files found.
dlls/avifil32/Makefile.in
View file @
c64432ce
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
avifil32.dll
IMPORTLIB
=
libavifil32.
$(IMPLIBEXT)
IMPORTS
=
msacm32 msvfw32
shell32
winmm ole32 user32 advapi32 kernel32 ntdll
IMPORTS
=
msacm32 msvfw32 winmm ole32 user32 advapi32 kernel32 ntdll
EXTRALIBS
=
-luuid
C_SRCS
=
\
...
...
dlls/avifil32/api.c
View file @
c64432ce
...
...
@@ -176,8 +176,7 @@ static BOOL AVIFILE_GetFileHandlerByExtension(LPCWSTR szFile, LPCLSID lpclsid)
* AVIFileInit (AVIFILE.100)
*/
void
WINAPI
AVIFileInit
(
void
)
{
/* need to load ole32.dll if not already done and get some functions */
FIXME
(
"(): stub!
\n
"
);
OleInitialize
(
NULL
);
}
/***********************************************************************
...
...
@@ -186,6 +185,7 @@ void WINAPI AVIFileInit(void) {
*/
void
WINAPI
AVIFileExit
(
void
)
{
/* need to free ole32.dll if we are the last exit call */
/* OleUnitialize() */
FIXME
(
"(): stub!
\n
"
);
}
...
...
@@ -253,8 +253,7 @@ HRESULT WINAPI AVIFileOpenW(PAVIFILE *ppfile, LPCWSTR szFile, UINT uMode,
memcpy
(
&
clsidHandler
,
lpHandler
,
sizeof
(
clsidHandler
));
/* create instance of handler */
hr
=
SHCoCreateInstance
(
NULL
,
&
clsidHandler
,
NULL
,
&
IID_IAVIFile
,
(
LPVOID
*
)
ppfile
);
hr
=
CoCreateInstance
(
&
clsidHandler
,
NULL
,
CLSCTX_INPROC
,
&
IID_IAVIFile
,
(
LPVOID
*
)
ppfile
);
if
(
FAILED
(
hr
)
||
*
ppfile
==
NULL
)
return
hr
;
...
...
@@ -493,8 +492,7 @@ HRESULT WINAPI AVIStreamCreate(PAVISTREAM *ppavi, LONG lParam1, LONG lParam2,
if
(
pclsidHandler
==
NULL
)
return
AVIERR_UNSUPPORTED
;
hr
=
SHCoCreateInstance
(
NULL
,
pclsidHandler
,
NULL
,
&
IID_IAVIStream
,
(
LPVOID
*
)
ppavi
);
hr
=
CoCreateInstance
(
pclsidHandler
,
NULL
,
CLSCTX_INPROC
,
&
IID_IAVIStream
,
(
LPVOID
*
)
ppavi
);
if
(
FAILED
(
hr
)
||
*
ppavi
==
NULL
)
return
hr
;
...
...
@@ -751,8 +749,7 @@ HRESULT WINAPI AVIMakeCompressedStream(PAVISTREAM *ppsCompressed,
}
else
memcpy
(
&
clsidHandler
,
pclsidHandler
,
sizeof
(
clsidHandler
));
hr
=
SHCoCreateInstance
(
NULL
,
&
clsidHandler
,
NULL
,
&
IID_IAVIStream
,
(
LPVOID
*
)
ppsCompressed
);
hr
=
CoCreateInstance
(
&
clsidHandler
,
NULL
,
CLSCTX_INPROC
,
&
IID_IAVIStream
,
(
LPVOID
*
)
ppsCompressed
);
if
(
FAILED
(
hr
)
||
*
ppsCompressed
==
NULL
)
return
hr
;
...
...
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