Skip to content

Commit 0c65816

Browse files
committed
Added more ATTACH_HOOK_DEBUGGING macros to meaningful locations.
1 parent 8ca8c57 commit 0c65816

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/shellextension/dllmain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ STDAPI DllRegisterServer(void)
128128
_Use_decl_annotations_
129129
STDAPI DllUnregisterServer(void)
130130
{
131+
ATTACH_HOOK_DEBUGGING;
132+
131133
// unregisters object, typelib and all interfaces in typelib
132134
HRESULT hr = _AtlModule.DllUnregisterServer();
133135

@@ -146,6 +148,8 @@ STDAPI DllUnregisterServer(void)
146148

147149
extern "C" int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
148150
{
151+
//ATTACH_HOOK_DEBUGGING;
152+
149153
BOOL result = _AtlModule.DllMain(dwReason, lpReserved);
150154
if (result == FALSE)
151155
{

0 commit comments

Comments
 (0)