Skip to content

Commit 5eac28c

Browse files
qtwinmigrate: Fix build against Qt 5.8
qWinAppInst() has been removed from QtCore. Change-Id: Iefd249c8e454c3141e2f7e0346b830b5efe41e0a Reviewed-by: Andy Shaw <andy.shaw@qt.io>
1 parent 7244e43 commit 5eac28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qtwinmigrate/src/qwinhost.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ bool QWinHost::event(QEvent *e)
254254
switch(e->type()) {
255255
case QEvent::Polish:
256256
if (!hwnd) {
257-
hwnd = createWindow((HWND)winId(), qWinAppInst());
257+
hwnd = createWindow(HWND(winId()), GetModuleHandle(0));
258258
fixParent();
259259
own_hwnd = hwnd != 0;
260260
}

0 commit comments

Comments
 (0)