diff options
author | Martin Storsjö <[email protected]> | 2024-11-28 15:13:15 +0200 |
---|---|---|
committer | Martin Storsjö <[email protected]> | 2024-11-28 18:22:13 +0200 |
commit | fbd8067a89ba7abf2a6d063a98edda9b19c9c749 (patch) | |
tree | 51eee3cd815218cca95b4573c95f869d7f33eea2 /src/plugins/platforms/windows/qwindowswindow.cpp | |
parent | aec007d5169b24eb7ad748e5466eba96a0fce33b (diff) |
Windows: Add a missing WINAPI for a callback function
This fixes compilation for i686 after
5feefd30734cd12753956819fc7c152be07c24cd, fixing compilation errors
like these:
qtbase/src/plugins/platforms/windows/qwindowswindow.cpp:901:69: error: no matching member function for call to 'registerWindowClass'
901 | const QString windowTitlebarName = QWindowsContext::instance()->registerWindowClass(QStringLiteral("_q_titlebar"), WndProcTitleBar, CS_VREDRAW|CS_HREDRAW, nullptr, false);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
qtbase/src/plugins/platforms/windows/qwindowscontext.h:77:13: note: candidate function not viable: no known conversion from 'LRESULT (HWND, UINT, WPARAM, LPARAM)' (aka 'long (HWND__ *, unsigned int, unsigned int, long)') to 'WNDPROC' (aka 'long (*)(HWND__ *, unsigned int, unsigned int, long) __attribute__((stdcall))') for 2nd argument
77 | QString registerWindowClass(QString cname, WNDPROC proc,
| ^ ~~~~~~~~~~~~
Change-Id: I9eb2d3dc0626b8606d4b49cf82fba34d6a4b2942
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowswindow.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 61cc674f4df..8b29d7d9f0c 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -283,7 +283,7 @@ static inline RECT RECTfromQRect(const QRect &rect) return result; } -static LRESULT WndProcTitleBar(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +static LRESULT WINAPI WndProcTitleBar(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HWND parentHwnd = reinterpret_cast<HWND>(GetWindowLongPtr(hwnd, GWL_HWNDPARENT)); QWindowsWindow* platformWindow = QWindowsContext::instance()->findPlatformWindow(parentHwnd); |