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
960f0595
Commit
960f0595
authored
Nov 28, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Load IRegistrar from atl100.dll.
parent
a61f68fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
fakedll.c
dlls/setupapi/fakedll.c
+7
-13
No files found.
dlls/setupapi/fakedll.c
View file @
960f0595
...
...
@@ -770,7 +770,7 @@ static BOOL CALLBACK register_resource( HMODULE module, LPCWSTR type, LPWSTR nam
static
void
register_fake_dll
(
const
WCHAR
*
name
,
const
void
*
data
,
size_t
size
)
{
static
const
WCHAR
atlW
[]
=
{
'a'
,
't'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
atlW
[]
=
{
'a'
,
't'
,
'l'
,
'
1'
,
'0'
,
'0'
,
'
.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
moduleW
[]
=
{
'M'
,
'O'
,
'D'
,
'U'
,
'L'
,
'E'
,
0
};
static
const
WCHAR
regtypeW
[]
=
{
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'R'
,
'E'
,
'G'
,
'I'
,
'S'
,
'T'
,
'R'
,
'Y'
,
0
};
static
const
WCHAR
manifestW
[]
=
{
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'M'
,
'A'
,
'N'
,
'I'
,
'F'
,
'E'
,
'S'
,
'T'
,
0
};
...
...
@@ -791,20 +791,14 @@ static void register_fake_dll( const WCHAR *name, const void *data, size_t size
if
(
!
registrar
)
{
/* create the object by hand since we can't guarantee that atl and ole32 are registered */
IClassFactory
*
cf
;
HRESULT
(
WINAPI
*
pDllGetClassObject
)(
REFCLSID
clsid
,
REFIID
iid
,
LPVOID
*
ppv
);
HRESULT
(
WINAPI
*
pAtlCreateRegistrar
)(
IRegistrar
**
);
HMODULE
atl
=
LoadLibraryW
(
atlW
);
if
((
pDllGetClassObject
=
(
void
*
)
GetProcAddress
(
atl
,
"DllGetClassObject"
)))
{
hr
=
pDllGetClassObject
(
&
CLSID_Registrar
,
&
IID_IClassFactory
,
(
void
**
)
&
cf
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IClassFactory_CreateInstance
(
cf
,
NULL
,
&
IID_IRegistrar
,
(
void
**
)
&
registrar
);
IClassFactory_Release
(
cf
);
}
}
if
((
pAtlCreateRegistrar
=
(
void
*
)
GetProcAddress
(
atl
,
"AtlCreateRegistrar"
)))
hr
=
pAtlCreateRegistrar
(
&
registrar
);
else
hr
=
E_NOINTERFACE
;
if
(
!
registrar
)
{
ERR
(
"failed to create IRegistrar: %x
\n
"
,
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