Skip to content

Commit

Permalink
No more 'operation completed successfully' in time_zone::get_info (#3122
Browse files Browse the repository at this point in the history
)

Co-authored-by: Nicole Mazzuca <[email protected]>
  • Loading branch information
strega-nil-ms and strega-nil authored Oct 12, 2022
1 parent 6128830 commit 6f467fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stl/src/tzdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ namespace {
const auto _Input_as_wchar = reinterpret_cast<const wchar_t*>(_Input);
const auto _Count_result = __std_fs_convert_wide_to_narrow(_Code_page, _Input_as_wchar, _Input_len, nullptr, 0);
if (_Count_result._Err != __std_win_error::_Success) {
SetLastError(static_cast<DWORD>(_Count_result._Err));
_Err = __std_tzdb_error::_Win_error;
return nullptr;
}
Expand All @@ -214,6 +215,7 @@ namespace {
const auto _Result =
__std_fs_convert_wide_to_narrow(_Code_page, _Input_as_wchar, _Input_len, _Data.get(), _Count_result._Len);
if (_Result._Err != __std_win_error::_Success) {
SetLastError(static_cast<DWORD>(_Result._Err));
_Err = __std_tzdb_error::_Win_error;
return nullptr;
}
Expand Down

0 comments on commit 6f467fc

Please sign in to comment.