Skip to content

Commit

Permalink
Minor documentation comment update.
Browse files Browse the repository at this point in the history
  • Loading branch information
psiha committed May 23, 2024
1 parent 187ce42 commit 7e55f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapping/mapping.win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ err::fallible_result<void, nt::error> set_size( mapping & __restrict the_mapping
the_mapping.close(); // no strong guarantee :/
auto const file_reisze_result{ set_size( the_mapping.underlying_file(), new_size )() };
if ( !file_reisze_result )
return nt::error/*...mrmlj...*/( file_reisze_result.error().get() ); // TODO fully move to NativeNT API (NtSetInformationFile)
return nt::error/*...mrmlj...*/( file_reisze_result.error().get() ); // TODO fully move to NativeNT API https://cpp.hotexamples.com/examples/-/-/NtSetInformationFile/cpp-ntsetinformationfile-function-examples.html
auto const new_mapping_handle{ detail::create_mapping_impl::map_file( the_mapping.file, the_mapping.create_mapping_flags, new_size ) };
the_mapping.reset( new_mapping_handle );
if ( !the_mapping )
Expand Down

0 comments on commit 7e55f0e

Please sign in to comment.