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
77c7fcdc
Commit
77c7fcdc
authored
Dec 11, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Reimplemented AtlModuleUpdateRegistryFromResourceD on top of AtlUpdateRegistryFromResourceD.
parent
a97a6676
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
50 deletions
+3
-50
registrar.c
dlls/atl/registrar.c
+3
-50
No files found.
dlls/atl/registrar.c
View file @
77c7fcdc
...
...
@@ -108,63 +108,16 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *ppvObject)
extern
HINSTANCE
hInst
;
static
HRESULT
do_register_dll_server
(
IRegistrar
*
pRegistrar
,
LPCOLESTR
wszDll
,
LPCOLESTR
wszId
,
BOOL
do_register
,
const
struct
_ATL_REGMAP_ENTRY
*
pMapEntries
)
{
IRegistrar
*
registrar
;
HRESULT
hres
;
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
};
if
(
pRegistrar
)
{
registrar
=
pRegistrar
;
}
else
{
hres
=
AtlCreateRegistrar
(
&
registrar
);
if
(
FAILED
(
hres
))
return
hres
;
}
IRegistrar_AddReplacement
(
registrar
,
wszModule
,
wszDll
);
for
(
pMapEntry
=
pMapEntries
;
pMapEntry
&&
pMapEntry
->
szKey
;
pMapEntry
++
)
IRegistrar_AddReplacement
(
registrar
,
pMapEntry
->
szKey
,
pMapEntry
->
szData
);
if
(
do_register
)
hres
=
IRegistrar_ResourceRegisterSz
(
registrar
,
wszDll
,
wszId
,
wszRegistry
);
else
hres
=
IRegistrar_ResourceUnregisterSz
(
registrar
,
wszDll
,
wszId
,
wszRegistry
);
if
(
registrar
!=
pRegistrar
)
IRegistrar_Release
(
registrar
);
return
hres
;
}
/***********************************************************************
* AtlModuleUpdateRegistryFromResourceD [ATL.@]
*
*/
HRESULT
WINAPI
AtlModuleUpdateRegistryFromResourceD
(
_ATL_MODULEW
*
pM
,
LPCOLESTR
lpszRes
,
BOOL
bRegister
,
struct
_ATL_REGMAP_ENTRY
*
pMapEntries
,
IRegistrar
*
pReg
)
BOOL
bRegister
,
struct
_ATL_REGMAP_ENTRY
*
pMapEntries
,
IRegistrar
*
pReg
)
{
HINSTANCE
lhInst
=
pM
->
m_hInst
;
/* everything inside this function below this point
* should go into atl71.AtlUpdateRegistryFromResourceD
*/
WCHAR
module_name
[
MAX_PATH
];
if
(
!
GetModuleFileNameW
(
lhInst
,
module_name
,
MAX_PATH
))
{
FIXME
(
"hinst %p: did not get module name
\n
"
,
lhInst
);
return
E_FAIL
;
}
TRACE
(
"%p (%s), %s, %d, %p, %p
\n
"
,
hInst
,
debugstr_w
(
module_name
),
debugstr_w
(
lpszRes
),
bRegister
,
pMapEntries
,
pReg
);
TRACE
(
"(%p %s %d %p %p)
\n
"
,
pM
,
debugstr_w
(
lpszRes
),
bRegister
,
pMapEntries
,
pReg
);
return
do_register_dll_server
(
pReg
,
module_name
,
lpszRes
,
bRegister
,
pMapEntries
);
return
AtlUpdateRegistryFromResourceD
(
pM
->
m_hInst
,
lpszRes
,
bRegister
,
pMapEntries
,
pReg
);
}
/***********************************************************************
...
...
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