summaryrefslogtreecommitdiffstats
path: root/qtwinmigrate/src/qwinhost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtwinmigrate/src/qwinhost.cpp')
-rw-r--r--qtwinmigrate/src/qwinhost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtwinmigrate/src/qwinhost.cpp b/qtwinmigrate/src/qwinhost.cpp
index db089ad..fc08019 100644
--- a/qtwinmigrate/src/qwinhost.cpp
+++ b/qtwinmigrate/src/qwinhost.cpp
@@ -254,7 +254,7 @@ bool QWinHost::event(QEvent *e)
switch(e->type()) {
case QEvent::Polish:
if (!hwnd) {
- hwnd = createWindow((HWND)winId(), qWinAppInst());
+ hwnd = createWindow(HWND(winId()), GetModuleHandle(0));
fixParent();
own_hwnd = hwnd != 0;
}