FreeRDP/winpr
Norbert Federa 178afd8dd5 winpr: fix PathCchAppend
Fix incorrect usage of S_FALSE which was used to indicate errors
although it is a HRESULT success code.
Make this function behave like the Windows 8 implementation and
the according MSDN specification.

- return E_INVALIDARG instead of S_FALSE if pszPath is NULL
- return E_INVALIDARG instead of S_FALSE if pszMore is NULL
- return E_INVALIDARG if cchPath is zero
- return E_INVALIDARG if cchPath is greater than PATHCCH_MAX_CCH
- return HRESULT_FROM_WIN32(ERROR_FILENAME_EXCED_RANGE) if the combined
  path size exceeds cchPath (this is the same HRESULT which the Windows
  implementation returns in this case and which is referred to as
  PATHCCH_E_FILENAME_TOO_LONG on msdn)

Also extended/fixed the TestPathCchAppend ctest
2015-06-03 16:06:02 +02:00
..
include winpr: fixed HRESULT & SCODE types, added a ctest 2015-06-02 19:52:52 +02:00
libwinpr winpr: fix PathCchAppend 2015-06-03 16:06:02 +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