diff options
-rw-r--r-- | plugins/ShellExt/src/options.cpp | 4 | ||||
-rw-r--r-- | plugins/ShellExt/src/shlcom.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ShellExt/src/options.cpp b/plugins/ShellExt/src/options.cpp index ccc2d3eb6a..8d288f1dc6 100644 --- a/plugins/ShellExt/src/options.cpp +++ b/plugins/ShellExt/src/options.cpp @@ -35,8 +35,8 @@ static INT_PTR CALLBACK OptDialogProc(HWND hwndDlg, UINT wMsg, WPARAM wParam, LP TranslateDialogDefault(hwndDlg);
comReg = IsCOMRegistered();
mir_sntprintf(szBuf, SIZEOF(szBuf), _T("%s (%s)"),
- COM_OKSTR[ (comReg & COMREG_OK) != 0 ],
- COM_APPROVEDSTR[ (comReg & COMREG_APPROVED) != 0 ]);
+ TranslateTS(COM_OKSTR[ (comReg & COMREG_OK) != 0 ]),
+ TranslateTS(COM_APPROVEDSTR[ (comReg & COMREG_APPROVED) != 0 ]));
SetWindowText(GetDlgItem(hwndDlg, IDC_STATUS), szBuf);
// auto size the static windows to fit their text
// they're rendering in a font not selected into the DC.
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;
}
|