Commit 5275b1b8 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advpack: Call OleInitialize before registering OCXs, like native does.

parent fd8868ba
......@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = advpack.dll
IMPORTLIB = libadvpack.$(IMPLIBEXT)
IMPORTS = setupapi version user32 advapi32 kernel32 ntdll
IMPORTS = ole32 setupapi version user32 advapi32 kernel32 ntdll
C_SRCS = \
advpack.c \
......
......@@ -30,6 +30,7 @@
#include "winnls.h"
#include "setupapi.h"
#include "advpub.h"
#include "ole2.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "advpack_private.h"
......@@ -350,8 +351,10 @@ static HRESULT adv_install(ADVInfo *info)
if (hr != S_OK)
return hr;
OleInitialize(NULL);
hr = iterate_section_fields(info->hinf, info->install_sec,
RegisterOCXs, register_ocxs_callback, NULL);
OleUninitialize();
if (hr != S_OK)
return hr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment