Module: wine Branch: master Commit: a1f5029e067f681818db5387fdf62623735f7afe URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1f5029e067f681818db5387fd...
Author: Thomas Faber thfabba@gmx.de Date: Tue Sep 27 12:55:21 2011 +0200
shell32/tests: Fix build with MSVC.
---
dlls/shell32/tests/recyclebin.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/tests/recyclebin.c b/dlls/shell32/tests/recyclebin.c index 391e025..d449b7e 100644 --- a/dlls/shell32/tests/recyclebin.c +++ b/dlls/shell32/tests/recyclebin.c @@ -55,8 +55,8 @@ static void test_query_recyclebin(void) HRESULT hr; HANDLE file; SHFILEOPSTRUCTA shfo; - const CHAR *name="test.txt"; - CHAR buf[MAX_PATH+strlen(name)+2]; + const CHAR name[] = "test.txt"; + CHAR buf[MAX_PATH + sizeof(name) + 1]; if(!pSHQueryRecycleBinA) { skip("SHQueryRecycleBinA does not exist\n");