fix(Console): Issue with disabling the close button of console (#479)

This commit is contained in:
Yimura authored and GitHub committed 2022-10-19 19:24:43 +01:00
1 parent 7e7f1ac30a
commit 7c0d4eab23
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
file_manager_instance->get_project_file("./cout.log")
);
EnableMenuItem(GetSystemMenu(FindWindowA(NULL, "YimMenu"), 0), SC_CLOSE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
EnableMenuItem(GetSystemMenu(GetConsoleWindow(), 0), SC_CLOSE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
try
{