From 57c8c9e55f30e3ee1cdd31dfb2b1338d6fd8cd47 Mon Sep 17 00:00:00 2001 From: Bernard Ladenthin Date: Mon, 7 May 2007 18:13:35 +0200 Subject: [PATCH] browseui: Fixed ClassFactory_LockServer implementation. --- dlls/browseui/browseui.h | 4 ---- dlls/browseui/browseui_main.c | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/browseui/browseui.h b/dlls/browseui/browseui.h index f8ec1949a24..2f44ac74914 100644 --- a/dlls/browseui/browseui.h +++ b/dlls/browseui/browseui.h @@ -23,10 +23,6 @@ extern LONG BROWSEUI_refCount; -extern LONG module_ref; -#define LOCK_MODULE() InterlockedIncrement(&module_ref) -#define UNLOCK_MODULE() InterlockedDecrement(&module_ref) - HRESULT WINAPI ACLMulti_Constructor(IUnknown *punkOuter, IUnknown **ppOut); #endif /* __WINE_SHDOCVW_H */ diff --git a/dlls/browseui/browseui_main.c b/dlls/browseui/browseui_main.c index c5f9cbe6892..98b1424390e 100644 --- a/dlls/browseui/browseui_main.c +++ b/dlls/browseui/browseui_main.c @@ -43,8 +43,6 @@ LONG BROWSEUI_refCount = 0; HINSTANCE browseui_hinstance = 0; -LONG module_ref = 0; - typedef HRESULT (WINAPI *LPFNCONSTRUCTOR)(IUnknown *pUnkOuter, IUnknown **ppvOut); static const struct { @@ -133,9 +131,9 @@ static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL fLock) TRACE("(%p)->(%x)\n", This, fLock); if(fLock) - LOCK_MODULE(); + InterlockedIncrement(&BROWSEUI_refCount); else - UNLOCK_MODULE(); + InterlockedDecrement(&BROWSEUI_refCount); return S_OK; }