diff --git a/src/Elevate/EnvironmentStrings.cpp b/src/Elevate/EnvironmentStrings.cpp index d196be6..7649c37 100644 --- a/src/Elevate/EnvironmentStrings.cpp +++ b/src/Elevate/EnvironmentStrings.cpp @@ -21,6 +21,6 @@ DWORD EnvironmentStrings::CalculateSize() const { const auto stringSize = wcslen(current); current += stringSize + 1; - if (stringSize == 0) return current - start; + if (stringSize == 0) return static_cast(current - start); } }