FreeRDP/winpr
Norbert Federa 92b0076c53 winpr: fix PathCchStripPrefix
And again S_FALSE was incorrectly used to indicate an error.
Fix this and be more compatible to the Windows 8 implementation of
this function:

- return E_INVALIDARG instead of S_FALSE if pszPath is NULL
- return E_INVALIDARG instead of S_FALSE if cchPath < 4
- return E_INVALIDARG if cchPath > PATHCCH_MAX_CCH
- allow stripping of "\\?\c:" and don't require "\\?\c:\"
- verify that the character at the drive letter position is
  actually an alphabetic character
- since the passed pszPath must not necessarily be null terminated
  and we always have enough space after the memmove we can always
  ensure the null termination of the stripped result

Also extended/fixed the TestPathCchStripPrefixctest
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 PathCchStripPrefix 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