Commit 79c96783 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

Note that path_outW is an array and thus cannot be NULL. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 194851e5
...@@ -1110,7 +1110,7 @@ static void test_PathCchCanonicalize(void) ...@@ -1110,7 +1110,7 @@ static void test_PathCchCanonicalize(void)
hr = pPathCchCanonicalize(path_outW, ARRAY_SIZE(path_outW), path_inW); 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", 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)); 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[0] = 'C';
path_inW[1] = ':'; path_inW[1] = ':';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment