FreeRDP/winpr
Norbert Federa c4cd60110a winpr: fix PathCchFindExtension
Fix multiple inplementation errors including the incorrect usage of S_FALSE.
Make this function behave like the Windows 8 implementation and
the according MSDN specification.

- return S_OK if the extension was NOT found
- if no extension was found, ppszExt must point to the string's terminating null
- return E_INVALIDARG if pszPath is not null-terminated within the cchPath range
- return E_INVALIDARG if pszPath is NULL
- return E_INVALIDARG if ppszExt is NULL
- return E_INVALIDARG if cchPath is Zero
- return E_NOTIMPL instead of S_OK in PathPathCchFindExtensionW()

Also extended/fixed the TestPathCchFindExtension ctest
2015-06-08 14:33:19 +02:00
..
include winpr: fixed HRESULT & SCODE types, added a ctest 2015-06-02 19:52:52 +02:00
libwinpr winpr: fix PathCchFindExtension 2015-06-08 14:33:19 +02:00
test winpr: fixed HRESULT & SCODE types, added a ctest 2015-06-02 19:52:52 +02:00
tools free can handle NULL perfectly fine 2015-05-11 09:07:39 +02:00
.gitignore libwinpr-registry: start implementation 2012-06-05 18:56:31 -04:00
CMakeLists.txt winpr: add intrin.h 2015-05-26 16:41:29 +02:00
WinPRConfig.cmake.in cmake: export to different directory, export more build info 2013-10-29 15:16:44 -04:00