mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix MSVC warning C26477
Relating to C++ Core Guidelines es.47.
This commit is contained in:
@@ -167,10 +167,10 @@ std::string FromWinWide(const std::wstring& wstr) {
|
||||
0,
|
||||
wstr.c_str(),
|
||||
narrow(wstr.length()),
|
||||
NULL,
|
||||
nullptr,
|
||||
0,
|
||||
NULL,
|
||||
NULL);
|
||||
nullptr,
|
||||
nullptr);
|
||||
|
||||
if (len == 0) {
|
||||
return std::string();
|
||||
@@ -183,8 +183,8 @@ std::string FromWinWide(const std::wstring& wstr) {
|
||||
narrow(wstr.length()),
|
||||
str.data(),
|
||||
narrow(str.length()),
|
||||
NULL,
|
||||
NULL);
|
||||
nullptr,
|
||||
nullptr);
|
||||
return str;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user