diff --git a/src/wine-host/utils.h b/src/wine-host/utils.h index 0c5f40d7..f67f2836 100644 --- a/src/wine-host/utils.h +++ b/src/wine-host/utils.h @@ -80,7 +80,7 @@ class Win32Thread { * @param parameter The parameter passed to the entry point function. */ template - Win32Thread(Function&& fn, Args&&... args) + Win32Thread(Function fn, Args... args) : handle(CreateThread( nullptr, 0, @@ -92,9 +92,9 @@ class Win32Thread { // arguments to the lambda so we don't end up with dangling // references. new fu2::unique_function( - [f = std::forward(fn), - ... args = std::forward(args)]() mutable { - f(std::forward(args)...); + [f = std::move(fn), + ... args = std::move(args)]() mutable { + f(std::move(args)...); }), 0, nullptr),