FreeRDP/winpr/libwinpr/path/test
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
..
.gitignore libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
CMakeLists.txt winpr: always build "monolitic" 2014-07-10 11:10:58 +02:00
TestPathAllocCanonicalize.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathAllocCombine.c freerdp: fix several type related warnings 2014-05-08 18:02:02 -04:00
TestPathCchAddBackslash.c winpr: fix PathCchAddBackslash 2015-06-03 16:06:01 +02:00
TestPathCchAddBackslashEx.c winpr: fix PathCchAddBackslashEx 2015-06-03 16:06:02 +02:00
TestPathCchAddExtension.c winpr: fix PathCchAddExtension 2015-06-03 16:06:02 +02:00
TestPathCchAppend.c freerdp: fix several type related warnings 2014-05-08 18:02:02 -04:00
TestPathCchAppendEx.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchCanonicalize.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchCanonicalizeEx.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchCombine.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchCombineEx.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchFindExtension.c libfreerdp-common: refactoring of addin loader 2012-11-17 22:03:04 -05:00
TestPathCchIsRoot.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchRemoveBackslash.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchRemoveBackslashEx.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchRemoveExtension.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchRemoveFileSpec.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchRenameExtension.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchSkipRoot.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathCchStripPrefix.c winpr: fix PathCchStripPrefix 2015-06-03 16:06:02 +02:00
TestPathCchStripToRoot.c libwinpr-path: start writing tests 2012-10-01 16:49:34 -04:00
TestPathIsUNCEx.c ctest: change default output test path 2012-10-18 15:37:00 -04:00
TestPathShell.c libwinpr-path: rename known path constants 2013-03-22 16:03:42 -04:00