user - EDIT_EM_GetLine - Return 0 if dst NULL

Stefan Siebert stefan.siebert at web.de
Thu Aug 3 14:30:29 CDT 2006


This patch fixes a Notes Client crash when building the server console 
tab. After creating a text control for console commands it sends
an EM_GETLINE16 message with line 0 and dst NULL.

Changelog: user/edit.c - EDIT_EM_GetLine - Return 0 if dst NULL

- Stefan Siebert


-------------- next part --------------
diff --git a/dlls/user/edit.c b/dlls/user/edit.c
old mode 100644
new mode 100755
index c4f95e4..e1ed323
--- a/dlls/user/edit.c
+++ b/dlls/user/edit.c
@@ -2797,6 +2797,9 @@ static INT EDIT_EM_GetLine(EDITSTATE *es
 	INT line_len, dst_len;
 	INT i;
 
+    if (dst == NULL)
+        return 0;
+
 	if (es->style & ES_MULTILINE) {
 		if (line >= es->line_count)
 			return 0;


More information about the wine-patches mailing list