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
c11ad1eb
Commit
c11ad1eb
authored
Mar 21, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Add support for the pMapEntries parameter to AtlModuleUpdateRegistryFromResourceD.
parent
2082a97d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
registrar.c
dlls/atl/registrar.c
+10
-5
No files found.
dlls/atl/registrar.c
View file @
c11ad1eb
...
...
@@ -756,11 +756,13 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppvObject)
extern
HINSTANCE
hInst
;
static
HRESULT
do_register_dll_server
(
LPCOLESTR
wszDll
,
LPCOLESTR
wszId
,
BOOL
do_register
)
static
HRESULT
do_register_dll_server
(
LPCOLESTR
wszDll
,
LPCOLESTR
wszId
,
BOOL
do_register
,
const
struct
_ATL_REGMAP_ENTRY
*
pMapEntries
)
{
WCHAR
buf
[
MAX_PATH
];
HRESULT
hres
;
IRegistrar
*
pRegistrar
;
const
struct
_ATL_REGMAP_ENTRY
*
pMapEntry
;
static
const
WCHAR
wszModule
[]
=
{
'M'
,
'O'
,
'D'
,
'U'
,
'L'
,
'E'
,
0
};
static
const
WCHAR
wszRegistry
[]
=
{
'R'
,
'E'
,
'G'
,
'I'
,
'S'
,
'T'
,
'R'
,
'Y'
,
0
};
...
...
@@ -770,6 +772,9 @@ static HRESULT do_register_dll_server(LPCOLESTR wszDll, LPCOLESTR wszId, BOOL do
Registrar_create
(
NULL
,
&
IID_IRegistrar
,
(
void
**
)
&
pRegistrar
);
IRegistrar_AddReplacement
(
pRegistrar
,
wszModule
,
wszDll
);
for
(
pMapEntry
=
pMapEntries
;
pMapEntry
&&
pMapEntry
->
szKey
;
pMapEntry
++
)
IRegistrar_AddReplacement
(
pRegistrar
,
pMapEntry
->
szKey
,
pMapEntry
->
szData
);
StringFromGUID2
(
&
CLSID_ATLRegistrar
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
IRegistrar_AddReplacement
(
pRegistrar
,
wszCLSID_ATLRegistrar
,
buf
);
...
...
@@ -785,7 +790,7 @@ static HRESULT do_register_dll_server(LPCOLESTR wszDll, LPCOLESTR wszId, BOOL do
static
HRESULT
do_register_server
(
BOOL
do_register
)
{
static
const
WCHAR
wszDll
[]
=
{
'a'
,
't'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
return
do_register_dll_server
(
wszDll
,
MAKEINTRESOURCEW
(
101
),
do_register
);
return
do_register_dll_server
(
wszDll
,
MAKEINTRESOURCEW
(
101
),
do_register
,
NULL
);
}
/***********************************************************************
...
...
@@ -801,8 +806,8 @@ HRESULT WINAPI AtlModuleUpdateRegistryFromResourceD(_ATL_MODULEW* pM, LPCOLESTR
*/
WCHAR
module_name
[
MAX_PATH
];
if
(
p
MapEntries
||
p
Reg
)
{
FIXME
(
"
MapEntries and
Registrar parameter not supported
\n
"
);
if
(
pReg
)
{
FIXME
(
"Registrar parameter not supported
\n
"
);
return
E_FAIL
;
}
...
...
@@ -815,7 +820,7 @@ HRESULT WINAPI AtlModuleUpdateRegistryFromResourceD(_ATL_MODULEW* pM, LPCOLESTR
TRACE
(
"%p (%s), %s, %d, %p, %p
\n
"
,
hInst
,
debugstr_w
(
module_name
),
debugstr_w
(
lpszRes
),
bRegister
,
pMapEntries
,
pReg
);
return
do_register_dll_server
(
module_name
,
lpszRes
,
bRegister
);
return
do_register_dll_server
(
module_name
,
lpszRes
,
bRegister
,
pMapEntries
);
}
/***********************************************************************
...
...
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