Mercurial > dwindows
comparison win/browser.c @ 2024:8a11bb8ec347
Win: Minor fix, using wrong union member. Use the unsigned long long value.
It had been using the pointer member, which would be the same on x64 but not x86.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 11 Nov 2019 18:29:23 +0000 |
parents | 28809bf17957 |
children | 89d62197124b |
comparison
equal
deleted
inserted
replaced
2023:3f265cd5b069 | 2024:8a11bb8ec347 |
---|---|
1188 BSTR locationURL; | 1188 BSTR locationURL; |
1189 | 1189 |
1190 /* Get the window handle and URL */ | 1190 /* Get the window handle and URL */ |
1191 vWindow.vt = VT_UI8; | 1191 vWindow.vt = VT_UI8; |
1192 pwb->lpVtbl->GetProperty(pwb, bstrProp, &vWindow); | 1192 pwb->lpVtbl->GetProperty(pwb, bstrProp, &vWindow); |
1193 hwnd = (HWND)vWindow.byref; | 1193 hwnd = (HWND)vWindow.ullVal; |
1194 SysFreeString(bstrProp); | 1194 SysFreeString(bstrProp); |
1195 pwb->lpVtbl->get_LocationURL(pwb, &locationURL); | 1195 pwb->lpVtbl->get_LocationURL(pwb, &locationURL); |
1196 /* Send the event for signal handling */ | 1196 /* Send the event for signal handling */ |
1197 _wndproc(hwnd, WM_USER+101, (WPARAM)DW_INT_TO_POINTER(DW_HTML_CHANGE_COMPLETE), (LPARAM)WideToUTF8((LPWSTR)locationURL)); | 1197 _wndproc(hwnd, WM_USER+101, (WPARAM)DW_INT_TO_POINTER(DW_HTML_CHANGE_COMPLETE), (LPARAM)WideToUTF8((LPWSTR)locationURL)); |
1198 break; | 1198 break; |