winpr/path: fix PathCchFindExtensionA and more
authorNorbert Federa <norbert.federa@thincast.com>
Thu, 26 May 2016 16:36:02 +0000 (18:36 +0200)
committerNorbert Federa <norbert.federa@thincast.com>
Thu, 26 May 2016 16:36:02 +0000 (18:36 +0200)
commita45ac8dad842e6d1120bfeeeebc3ab9941ceb3c3
tree995bb75f2a5e21591e0fae512f589e5b086f3e7a
parentef1ddff042999286007f0e036627528a9f7bfc8c
winpr/path: fix PathCchFindExtensionA and more

- PathCchFindExtensionA had an off-by-one error when verifying the
  required null termination
- TestPathCchFindExtension used unicode strings when testing the
  *A (ASCII) functions
- The PathAllocCombineW implementation (which is still buggy has
  hell) used strlen to calculate the lenght of unicode strings

TestPath now succeeds on WIN32
winpr/libwinpr/path/include/PathAllocCombine.c
winpr/libwinpr/path/path.c
winpr/libwinpr/path/test/TestPathCchFindExtension.c