Skip to content

Commit

Permalink
kram - fix win thumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
alecazam committed May 5, 2023
1 parent b5283cd commit 95b0611
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kram-thumb-win/Dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,16 @@ class CClassFactory : public IClassFactory {
return hr;
}

virtual CClassFactory(PFNCREATEINSTANCE pfnCreate)
CClassFactory(PFNCREATEINSTANCE pfnCreate)
: mReferences(1)
, mCreateFunc(pfnCreate) {
DllAddRef();
}

virtual ~CClassFactory() {
DllRelease();
}

// IUnknown
IFACEMETHODIMP QueryInterface(REFIID riid, void** ppv) {
static const QITAB qit[] = {
Expand Down Expand Up @@ -128,10 +132,6 @@ class CClassFactory : public IClassFactory {
}

private:
~CClassFactory() {
DllRelease();
}

std::atomic_long mReferences;
PFNCREATEINSTANCE mCreateFunc;
};
Expand Down

0 comments on commit 95b0611

Please sign in to comment.