Mercurial > octave
changeset 33051:5b54c2fb69bb
Add missing capture for Windows-specific code (bug #65318).
* libinterp/corefcn/sysdep.cc (get_regkey_value),
liboctave/system/lo-sysdep.cc (check_fseek_ftell_workaround_needed),
liboctave/system/oct-glob.cc (find_files): Add missing variables to list of
lambda captures.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 19 Feb 2024 09:06:31 +0100 |
parents | 8bb630882630 |
children | 3e762379d7d4 |
files | libinterp/corefcn/sysdep.cc liboctave/system/lo-sysdep.cc liboctave/util/oct-glob.cc |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/sysdep.cc Sun Feb 18 23:25:15 2024 -0500 +++ b/libinterp/corefcn/sysdep.cc Mon Feb 19 09:06:31 2024 +0100 @@ -907,7 +907,7 @@ if (result != ERROR_SUCCESS) return result; - unwind_action restore_keys ([] () { reg_close_key_wrapper (h_subkey); }); + unwind_action restore_keys ([h_subkey] () { reg_close_key_wrapper (h_subkey); }); std::wstring wname = sys::u8_to_wstring (name); DWORD length = 0;
--- a/liboctave/system/lo-sysdep.cc Sun Feb 18 23:25:15 2024 -0500 +++ b/liboctave/system/lo-sysdep.cc Mon Feb 19 09:06:31 2024 +0100 @@ -239,7 +239,7 @@ return false; } - unwind_action act ([] () + unwind_action act ([fptr, tmpname] () { std::fclose (fptr); sys::unlink (tmpname);
--- a/liboctave/util/oct-glob.cc Sun Feb 18 23:25:15 2024 -0500 +++ b/liboctave/util/oct-glob.cc Mon Feb 19 09:06:31 2024 +0100 @@ -184,7 +184,7 @@ if (h_find == INVALID_HANDLE_VALUE) return; - unwind_action close_h_find ([] () { FindClose (h_find); }); + unwind_action close_h_find ([h_find] () { FindClose (h_find); }); // find all files that match pattern do