Huw Davies : user32: Don't read past the end of a global memory block.
Alexandre Julliard
julliard at winehq.org
Fri Jul 18 06:45:27 CDT 2008
Module: wine
Branch: master
Commit: bf89330d146f1c08bf81bd16bea90a4e8c5a8a11
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf89330d146f1c08bf81bd16bea90a4e8c5a8a11
Author: Huw Davies <huw at codeweavers.com>
Date: Thu Jul 17 15:10:28 2008 +0100
user32: Don't read past the end of a global memory block.
---
dlls/user32/tests/dde.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c
index 56c8893..127b61d 100644
--- a/dlls/user32/tests/dde.c
+++ b/dlls/user32/tests/dde.c
@@ -178,8 +178,10 @@ static LRESULT WINAPI dde_server_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPA
ok(poke->cfFormat == CF_TEXT, "Expected CF_TEXT, got %d\n", poke->cfFormat);
if (msg_index == 5)
- ok(lstrcmpA((LPSTR)poke->Value, "poke data\r\n"),
- "Expected 'poke data\\r\\n', got %s\n", poke->Value);
+ {
+ size = GlobalSize((HGLOBAL)lo);
+ ok(size == 4, "got %d\n", size);
+ }
else
ok(!lstrcmpA((LPSTR)poke->Value, "poke data\r\n"),
"Expected 'poke data\\r\\n', got %s\n", poke->Value);
More information about the wine-cvs
mailing list