Damjan Jovanovic : winex11.drv: Fix file drops on KDE4 and XFCE.
Alexandre Julliard
julliard at winehq.org
Mon Jun 15 07:59:06 CDT 2009
Module: wine
Branch: master
Commit: 36685b076188d1e38b30bf9608778dda9fcd4e21
URL: http://source.winehq.org/git/wine.git/?a=commit;h=36685b076188d1e38b30bf9608778dda9fcd4e21
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Sun Jun 14 12:25:48 2009 +0200
winex11.drv: Fix file drops on KDE4 and XFCE.
---
dlls/winex11.drv/xdnd.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c
index 954284f..38687ec 100644
--- a/dlls/winex11.drv/xdnd.c
+++ b/dlls/winex11.drv/xdnd.c
@@ -375,9 +375,7 @@ static int X11DRV_XDND_DeconstructTextURIList(int property, void* data, int len)
{
while (end < len && uriList[end] != '\r')
++end;
- if (end == len)
- break;
- if (uriList[end+1] != '\n')
+ if (end < (len - 1) && uriList[end+1] != '\n')
{
WARN("URI list line doesn't end in \\r\\n\n");
break;
@@ -412,7 +410,7 @@ static int X11DRV_XDND_DeconstructTextURIList(int property, void* data, int len)
start = end + 2;
end = start;
}
- if (out && end == len)
+ if (out && end >= len)
{
DROPFILES *dropFiles;
dropFiles = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DROPFILES) + size + 1);
More information about the wine-cvs
mailing list