From: Armin Novak Date: Fri, 8 Feb 2019 08:20:58 +0000 (+0100) Subject: Fixed wide character comparison. X-Git-Tag: 2.0.0~532^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22eddef668415e81cce871745b05434498570203;p=platform%2Fupstream%2Ffreerdp.git Fixed wide character comparison. --- 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