code: small fixes
parent
80fbb030bd
commit
49cd5ac416
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue