From c1c91f2a1aa4e1e7940adb76e8787c78b8306c4e Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Fri, 19 Jul 2024 22:41:02 +0900 Subject: [PATCH] [SHELL32_APITEST] SHParseDisplayName: Add tests for shell:windows\system32 etc. (#7157) The shell protocol path needs special parsing. We didn't implement it correctly. JIRA issue: CORE-19693 - Add tests for shell:windows\system32 and shell:windows\fonts. --- modules/rostests/apitests/shell32/SHParseDisplayName.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/rostests/apitests/shell32/SHParseDisplayName.cpp b/modules/rostests/apitests/shell32/SHParseDisplayName.cpp index 35e40d6c27f..c3ac21660e5 100644 --- a/modules/rostests/apitests/shell32/SHParseDisplayName.cpp +++ b/modules/rostests/apitests/shell32/SHParseDisplayName.cpp @@ -63,6 +63,8 @@ struct test_data Tests[] = {__LINE__, L"shell:personal", NULL, CSIDL_MYDOCUMENTS, S_OK, T_PRE_VISTA}, {__LINE__, L"shell:programs", NULL, CSIDL_PROGRAMS, S_OK, T_PRE_VISTA}, {__LINE__, L"shell:programfiles", NULL, CSIDL_PROGRAM_FILES, S_OK, T_PRE_VISTA}, + {__LINE__, L"shell:windows\\system32", NULL, CSIDL_SYSTEM, S_OK, T_PRE_VISTA}, + {__LINE__, L"shell:windows\\fonts", NULL, CSIDL_FONTS, S_OK, T_PRE_VISTA}, /* The following tests are confusing. They don't work for SHParseDisplayName but work on psfDesktop->ParseDisplayName */ {__LINE__, L"shell:desktop", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, {__LINE__, L"shell:windows", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, @@ -70,6 +72,8 @@ struct test_data Tests[] = {__LINE__, L"shell:personal", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, {__LINE__, L"shell:programs", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, {__LINE__, L"shell:programfiles", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, + {__LINE__, L"shell:windows\\system32", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, + {__LINE__, L"shell:windows\\fonts", NULL, 0, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), T_VISTA_PLUS}, /* Tests for CInternet */ {__LINE__, L"aa:", NULL, 0, E_INVALIDARG, T_PRE_VISTA}, {__LINE__, L"garbage:", NULL, 0, E_INVALIDARG, T_PRE_VISTA},