aboutsummaryrefslogtreecommitdiff
path: root/libXext
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-09-11 12:40:41 +0200
committermarha <marha@users.sourceforge.net>2013-09-11 12:40:41 +0200
commitaf858aeb7348909e334cfd0db0070e1661df00fc (patch)
tree47a24a5aa9831024fcba9691944159d97eea108b /libXext
parent1de316b38f589817344e1a342050de4c427501df (diff)
downloadvcxsrv-af858aeb7348909e334cfd0db0070e1661df00fc.tar.gz
vcxsrv-af858aeb7348909e334cfd0db0070e1661df00fc.tar.bz2
vcxsrv-af858aeb7348909e334cfd0db0070e1661df00fc.zip
Solved compiler warnings
Diffstat (limited to 'libXext')
-rw-r--r--libXext/src/XAppgroup.c4
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();