kernelbase/tests: Avoid an uneeded lstrlenW() call.

Note that path_outW is an array and thus cannot be NULL.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2019-12-10 09:22:01 +01:00 committed by Alexandre Julliard
parent 194851e560
commit 79c967838d
1 changed files with 1 additions and 1 deletions

View File

@ -1110,7 +1110,7 @@ static void test_PathCchCanonicalize(void)
hr = pPathCchCanonicalize(path_outW, ARRAY_SIZE(path_outW), path_inW);
ok(hr == HRESULT_FROM_WIN32(ERROR_FILENAME_EXCED_RANGE), "expect hr %#x, got %#x %s\n",
HRESULT_FROM_WIN32(ERROR_FILENAME_EXCED_RANGE), hr, wine_dbgstr_w(path_outW));
ok(lstrlenW(path_outW) == 0, "got %d\n", lstrlenW(path_outW));
ok(!*path_outW, "got %d\n", lstrlenW(path_outW));
path_inW[0] = 'C';
path_inW[1] = ':';