Module: wine Branch: master Commit: 3e28e4ab0f7bf17cb478236ddb2851426b5e37bb URL: http://source.winehq.org/git/wine.git/?a=commit;h=3e28e4ab0f7bf17cb478236ddb...
Author: Dan Kegel dank@kegel.com Date: Wed Dec 2 11:02:09 2009 -0800
user32/tests: Allocate big enough buffer for UnpackDDElParam test.
---
dlls/user32/tests/dde.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c index afeef4d..3a0d656 100644 --- a/dlls/user32/tests/dde.c +++ b/dlls/user32/tests/dde.c @@ -2013,7 +2013,7 @@ static void test_UnpackDDElParam(void) broken(hi == 0xbeef), /* win2k */ "Expected 0, got %08lx\n", hi);
- hglobal = GlobalAlloc(GMEM_DDESHARE, 2); + hglobal = GlobalAlloc(GMEM_DDESHARE, 2 * sizeof(*ptr)); ptr = GlobalLock(hglobal); ptr[0] = 0xcafebabe; ptr[1] = 0xdeadbeef;