Mercurial > octave
diff libinterp/corefcn/sysdep.cc @ 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 | 49128bdb9eb2 |
children |
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;