summaryrefslogtreecommitdiff
path: root/src/envshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/envshell.cpp')
-rw-r--r--src/envshell.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/envshell.cpp b/src/envshell.cpp
index 33ec0624..f3146b9f 100644
--- a/src/envshell.cpp
+++ b/src/envshell.cpp
@@ -70,9 +70,9 @@ public:
{
}
- bool nativeEventFilter(const QByteArray& type, void* m, long* lresultOut) override
+ bool nativeEventFilter(const QByteArray& eventType, void* message, qintptr* result) override
{
- MSG* msg = (MSG*)m;
+ MSG* msg = (MSG*)message;
if (!msg) {
return false;
}
@@ -81,8 +81,8 @@ public:
const bool r = m_f(msg->hwnd, msg->message, msg->wParam, msg->lParam, &lr);
- if (lresultOut) {
- *lresultOut = lr;
+ if (result) {
+ *result = lr;
}
return r;
@@ -117,8 +117,8 @@ HRESULT IContextMenu_GetCommandString(
}
// Some context menu handlers have off-by-one bugs and will
- // overflow the output buffer. Let’s artificially reduce the
- // buffer size so a one-character overflow won’t corrupt memory.
+ // overflow the output buffer. Let�s artificially reduce the
+ // buffer size so a one-character overflow won�t corrupt memory.
if (cchMax <= 1) {
return E_FAIL;
}
@@ -140,7 +140,7 @@ HRESULT IContextMenu_GetCommandString(
}
if (FAILED(hr)) {
- // try again with ANSI – pad the buffer with one extra character
+ // try again with ANSI � pad the buffer with one extra character
// to compensate for context menu handlers that overflow by
// one character.
LPSTR pszAnsi = (LPSTR)LocalAlloc(