From e62672f9193b18c30067e2a239839c8bc89d1346 Mon Sep 17 00:00:00 2001 From: Phan Trinh Ha <23308647+thpthp1@users.noreply.github.com> Date: Wed, 8 May 2024 16:15:16 -0700 Subject: Init commit --- hid/firefly/sauron/Sauron.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hid/firefly/sauron/Sauron.cpp') diff --git a/hid/firefly/sauron/Sauron.cpp b/hid/firefly/sauron/Sauron.cpp index 16cb12d4..36ef367b 100644 --- a/hid/firefly/sauron/Sauron.cpp +++ b/hid/firefly/sauron/Sauron.cpp @@ -445,7 +445,7 @@ HRESULT CSauron::WzToColor(const WCHAR *pwszColor, COLORREF *pcrColor) return E_POINTER; } - if (0 == lstrlenW(pwszColor)) + if (0 == wcslen(pwszColor)) { //Empty color string passed in return E_INVALIDARG; @@ -457,7 +457,7 @@ HRESULT CSauron::WzToColor(const WCHAR *pwszColor, COLORREF *pcrColor) return E_POINTER; } - if (lstrlenW(pwszColor) != 7) + if (wcslen(pwszColor) != 7) { //hex color string is not of the correct length return E_INVALIDARG; @@ -534,5 +534,3 @@ inline DWORD CSauron::SwapBytes(DWORD dwRet) { return ((dwRet & 0x0000FF00) | ((dwRet & 0x00FF0000) >> 16) | ((dwRet & 0x000000FF) << 16)); } - - -- cgit v1.3.1