dmloader/tests: NUL terminate a wide string.
Michael Stefaniuc
mstefani at winehq.org
Tue Jul 18 19:24:04 CDT 2017
Signed-off-by: Michael Stefaniuc <mstefani 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};
--
2.9.4
More information about the wine-patches
mailing list