summaryrefslogtreecommitdiff
path: root/hid/firefly/sauron/Sauron.cpp
diff options
context:
space:
mode:
authorJakob Lichtenberg (170957) <[email protected]>2024-06-28 11:39:18 -0700
committerJakob Lichtenberg (170957) <[email protected]>2024-06-28 11:39:18 -0700
commit1971c7bfc27f90764155ef96df64db4b4cfb93df (patch)
tree9193a001a463219d073ce9ea5f1e3408a0ba3d56 /hid/firefly/sauron/Sauron.cpp
parent3c4d58d08b74cf2925ec632ed1fe81e0d81df8a1 (diff)
parentb3af8c8f9bd508f54075da2f2516b31d05cd52c8 (diff)
Merge branch 'main' into user/jakobl/nuget_packagereference_instead_of_packages_configuser/jakobl/nuget_packagereference_instead_of_packages_config
Diffstat (limited to 'hid/firefly/sauron/Sauron.cpp')
-rw-r--r--hid/firefly/sauron/Sauron.cpp6
1 files changed, 2 insertions, 4 deletions
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));
}
-
-