code: small fixes

isolation_bkp/dynres
Dominik Madarász 2022-07-30 19:54:16 +02:00
parent 80fbb030bd
commit 49cd5ac416
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
cmake_policy(SET CMP0057 NEW)
project(eco2d) project(eco2d)
include(cmake/utils.cmake) include(cmake/utils.cmake)

2
code/vendors/sfd.c vendored
View File

@ -89,7 +89,7 @@ static HWND find_main_window() {
FindMainWindowInfo info = { FindMainWindowInfo info = {
.process_id = GetCurrentProcessId() .process_id = GetCurrentProcessId()
}; };
EnumWindows(find_main_window_callback, (LPARAM)&info); EnumWindows((WNDENUMPROC)find_main_window_callback, (LPARAM)&info);
return info.handle_root; return info.handle_root;
} }