Michael Stefaniuc : dmloader/tests: NUL terminate a wide string.

Alexandre Julliard julliard at winehq.org
Wed Jul 19 16:05:32 CDT 2017


Module: wine
Branch: master
Commit: f42d14fdd0cdde3a3504d9f925a0305560ea9606
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f42d14fdd0cdde3a3504d9f925a0305560ea9606

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Jul 19 02:24:04 2017 +0200

dmloader/tests: NUL terminate a wide string.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dmloader/tests/loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dmloader/tests/loader.c b/dlls/dmloader/tests/loader.c
index 1735994..b24b2e2 100644
--- a/dlls/dmloader/tests/loader.c
+++ b/dlls/dmloader/tests/loader.c
@@ -47,7 +47,7 @@ static void test_directory(void)
 {
     IDirectMusicLoader8 *loader = NULL;
     HRESULT hr;
-    WCHAR con[] = {'c', 'o', 'n'};
+    WCHAR con[] = {'c', 'o', 'n', 0};
     WCHAR path[MAX_PATH];
     WCHAR invalid_path[] = {'/', 'i', 'n', 'v', 'a', 'l', 'i', 'd', ' ', 'p', 'a', 't', 'h', 0};
 




More information about the wine-cvs mailing list