From afa3aa776ea23ad736b28e9bf76f92c505c7d184 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Thu, 4 May 2017 15:05:10 +0000 Subject: [PATCH] [SHELL32_APITEST] -Add some tests for SHParseDisplayName for CORE-12882. svn path=/trunk/; revision=74473 --- rostests/apitests/shell32/SHParseDisplayName.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rostests/apitests/shell32/SHParseDisplayName.cpp b/rostests/apitests/shell32/SHParseDisplayName.cpp index f75b566a8f5..a1a37c35086 100644 --- a/rostests/apitests/shell32/SHParseDisplayName.cpp +++ b/rostests/apitests/shell32/SHParseDisplayName.cpp @@ -111,11 +111,13 @@ struct test_data Tests[] = {__LINE__, L"c:\\Program Files\\", L"C:\\Program Files", 0, S_OK, 0}, /* Paths with . are valid for win+r dialog or address bar but not for ParseDisplayName */ {__LINE__, L"c:\\Program Files\\.", NULL, 0, E_INVALIDARG, 0}, - {__LINE__, L"c:\\Program Files\\..", NULL, 0, E_INVALIDARG, 0}, + {__LINE__, L"c:\\Program Files\\..", NULL, 0, E_INVALIDARG, 0}, /* This gives C:\ when entered in address bar */ {__LINE__, L".", NULL, 0, E_INVALIDARG, 0}, {__LINE__, L"..", NULL, 0, E_INVALIDARG, 0}, {__LINE__, L"C:\\.", NULL, 0, E_INVALIDARG, 0}, - {__LINE__, L"C:\\..", NULL, 0, E_INVALIDARG, 0} /* C:\.. in the addressbar gives my computer! */ + {__LINE__, L"fonts", NULL, 0, HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), 0}, /* These three work for ShellExecute */ + {__LINE__, L"winsxs", NULL, 0, HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), 0}, + {__LINE__, L"system32", NULL, 0, HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), 0} }; UINT get_host_os_flag()