FreeRDP/winpr/libwinpr/path
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: fix PathCchAddExtension 2015-06-03 16:06:02 +02:00
test winpr: fix PathCchStripPrefix 2015-06-03 16:06:02 +02:00
CMakeLists.txt winpr: always build "monolitic" 2014-07-10 11:10:58 +02:00
ModuleOptions.cmake libwinpr: stubbed Path API 2012-09-22 22:02:55 -04:00
path.c winpr: fix PathCchStripPrefix 2015-06-03 16:06:02 +02:00
shell.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00