From 22eddef668415e81cce871745b05434498570203 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 8 Feb 2019 09:20:58 +0100 Subject: [PATCH] Fixed wide character comparison. --- winpr/libwinpr/path/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/path/path.c b/winpr/libwinpr/path/path.c index accb5e6..1cd9518 100644 --- a/winpr/libwinpr/path/path.c +++ b/winpr/libwinpr/path/path.c @@ -726,7 +726,7 @@ HRESULT PathCchStripPrefixW(PWSTR pszPath, size_t cchPath) if (cchPath < (lstrlenW(&pszPath[4]) + 1)) return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); - if (IsCharAlphaW(pszPath[4]) && (pszPath[5] == ':')) /* like C: */ + if (IsCharAlphaW(pszPath[4]) && (pszPath[5] == L':')) /* like C: */ { wmemmove_s(pszPath, cchPath, &pszPath[4], cchPath - 4); /* since the passed pszPath must not necessarily be null terminated -- 2.7.4