diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-24 09:56:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-24 09:56:27 +0000 |
commit | 372ddd7462b69cbe508d0b37e07988c4278e2db8 (patch) | |
tree | aa0039ca2b4b433b80cc82c74c27427fbacbf570 /plugins/ShellExt/src/shlcom.cpp | |
parent | db938d6a5905c407a2405094399e5e5bf85aea0e (diff) |
- translation issues
- minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src/shlcom.cpp')
-rw-r--r-- | plugins/ShellExt/src/shlcom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp index b2de97009b..e64ba8832c 100644 --- a/plugins/ShellExt/src/shlcom.cpp +++ b/plugins/ShellExt/src/shlcom.cpp @@ -584,7 +584,6 @@ TShlComRec::TShlComRec() HRESULT TShlComRec::QueryInterface(REFIID riid, void **ppvObject)
{
- *ppvObject = NULL;
// IShellExtInit is given when the TShlRec is created
if (riid == IID_IContextMenu || riid == IID_IContextMenu2 || riid == IID_IContextMenu3) {
*ppvObject = (IContextMenu3*)this;
@@ -600,6 +599,7 @@ HRESULT TShlComRec::QueryInterface(REFIID riid, void **ppvObject) return S_OK;
}
+ *ppvObject = NULL;
return CLASS_E_CLASSNOTAVAILABLE;
}
@@ -1031,7 +1031,7 @@ HRESULT TClassFactoryRec::CreateInstance(IUnknown *pUnkOuter, REFIID riid, void }
if (riid == IID_IShellExtInit) {
TShlComRec *p = new TShlComRec();
- *ppvObject = (IContextMenu3*)p;
+ *ppvObject = (IShellExtInit*)p;
return S_OK;
}
|