wine-patch implement ClassFactory_LockServer in browseui dll

Bernard Ladenthin bernard at ladenthin.net
Mon May 7 11:13:35 CDT 2007


Hello,
sorry about the patch before, it was the false one.

This one is the right.

Best regards from Germany, 
Bernard Ladenthin

---
 dlls/browseui/browseui_main.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dlls/browseui/browseui_main.c b/dlls/browseui/browseui_main.c
index 2796554..98b1424 100644
--- a/dlls/browseui/browseui_main.c
+++ b/dlls/browseui/browseui_main.c
@@ -126,8 +126,16 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
 
 static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL fLock)
 {
-    FIXME("(%p, %s) - not implemented\n", iface, (fLock ? "TRUE" : "FALSE"));
-    return E_NOTIMPL;
+    ClassFactory *This = (ClassFactory *)iface;
+
+    TRACE("(%p)->(%x)\n", This, fLock);
+
+    if(fLock)
+        InterlockedIncrement(&BROWSEUI_refCount);
+    else
+        InterlockedDecrement(&BROWSEUI_refCount);
+
+    return S_OK;
 }
 
 static const IClassFactoryVtbl ClassFactoryVtbl = {
-- 
1.4.4.4





More information about the wine-patches mailing list