diff options
Diffstat (limited to 'libXext')
-rw-r--r-- | libXext/src/XAppgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libXext/src/XAppgroup.c b/libXext/src/XAppgroup.c index b5642f3ba..b1c6fd1f8 100644 --- a/libXext/src/XAppgroup.c +++ b/libXext/src/XAppgroup.c @@ -337,7 +337,7 @@ Bool XagCreateAssociation(Display* dpy, Window* window_return, void* system_window) { #ifdef WIN32 - long tmp = *(HWND*) system_window; + HWND tmp = *(HWND*) system_window; XExtDisplayInfo *info = find_display (dpy); xXagCreateAssocReq *req; @@ -350,7 +350,7 @@ XagCreateAssociation(Display* dpy, Window* window_return, void* system_window) *window_return = req->window = XAllocID(dpy); req->window_type = XagWindowTypeWin32; req->system_window_len = sizeof(HWND); - Data32 (dpy, (long*) tmp, 1L); + Data32 (dpy, (HWND*) tmp, sizeof(HWND)/4); req->length++; UnlockDisplay(dpy); SyncHandle(); |