Author: gadamopoulos
Date: Thu May 4 15:05:10 2017
New Revision: 74473
URL:
http://svn.reactos.org/svn/reactos?rev=74473&view=rev
Log:
[SHELL32_APITEST] -Add some tests for SHParseDisplayName for CORE-12882.
Modified:
trunk/rostests/apitests/shell32/SHParseDisplayName.cpp
Modified: trunk/rostests/apitests/shell32/SHParseDisplayName.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/shell32/SHParseD…
==============================================================================
--- trunk/rostests/apitests/shell32/SHParseDisplayName.cpp [iso-8859-1] (original)
+++ trunk/rostests/apitests/shell32/SHParseDisplayName.cpp [iso-8859-1] Thu May 4
15:05:10 2017
@@ -111,11 +111,13 @@
{__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()