browseui: Implement ClassFactory_LockServer in browseui dll.
This commit is contained in:
parent
770e49cd3c
commit
db07476c11
|
@ -23,6 +23,10 @@
|
||||||
|
|
||||||
extern LONG BROWSEUI_refCount;
|
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);
|
HRESULT WINAPI ACLMulti_Constructor(IUnknown *punkOuter, IUnknown **ppOut);
|
||||||
|
|
||||||
#endif /* __WINE_SHDOCVW_H */
|
#endif /* __WINE_SHDOCVW_H */
|
||||||
|
|
|
@ -43,6 +43,8 @@ LONG BROWSEUI_refCount = 0;
|
||||||
|
|
||||||
HINSTANCE browseui_hinstance = 0;
|
HINSTANCE browseui_hinstance = 0;
|
||||||
|
|
||||||
|
LONG module_ref = 0;
|
||||||
|
|
||||||
typedef HRESULT (WINAPI *LPFNCONSTRUCTOR)(IUnknown *pUnkOuter, IUnknown **ppvOut);
|
typedef HRESULT (WINAPI *LPFNCONSTRUCTOR)(IUnknown *pUnkOuter, IUnknown **ppvOut);
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
|
@ -126,8 +128,16 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
|
||||||
|
|
||||||
static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL fLock)
|
static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL fLock)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %s) - not implemented\n", iface, (fLock ? "TRUE" : "FALSE"));
|
ClassFactory *This = (ClassFactory *)iface;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("(%p)->(%x)\n", This, fLock);
|
||||||
|
|
||||||
|
if(fLock)
|
||||||
|
LOCK_MODULE();
|
||||||
|
else
|
||||||
|
UNLOCK_MODULE();
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const IClassFactoryVtbl ClassFactoryVtbl = {
|
static const IClassFactoryVtbl ClassFactoryVtbl = {
|
||||||
|
|
Loading…
Reference in New Issue