shell32/tests: Fix build with MSVC.
authorThomas Faber <thfabba@gmx.de>
Tue, 27 Sep 2011 10:55:21 +0000 (12:55 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 27 Sep 2011 14:24:26 +0000 (16:24 +0200)
dlls/shell32/tests/recyclebin.c

index 391e0254990fceaa8f9401db5c00c6b588dd18ff..d449b7e4f01af40adfff3525fee998efad121f8d 100644 (file)
@@ -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");