From d0703f710a46ffbb9c63e7c5a189051801a5b6f7 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 2 Jun 2025 04:41:43 +0200 Subject: [PATCH] Is QtEntryPoint added automatically? --- CONFIG/config.cpp | 16 ---------------- miniwin/include/miniwin/windows.h | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/CONFIG/config.cpp b/CONFIG/config.cpp index b9c0345f..fc4ba324 100644 --- a/CONFIG/config.cpp +++ b/CONFIG/config.cpp @@ -374,19 +374,3 @@ int main(int argc, char* argv[]) g_theApp.ExitInstance(); return result; } - -#ifdef _WIN32 -extern "C" int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR /*cmdParamarg*/, int cmdShow) -{ - // Work-around problems with wchar_t as a native type - const unsigned short* cmdLineUtf16 = reinterpret_cast(GetCommandLineW()); - QByteArray cmdParam = QString::fromUtf16(cmdLineUtf16).toLocal8Bit(); - - int argc = 0; - QVector argv(8); - qWinMain(instance, prevInstance, cmdParam.data(), cmdShow, argc, argv); - - int result = main(argc, argv.data()); - return result; -} -#endif diff --git a/miniwin/include/miniwin/windows.h b/miniwin/include/miniwin/windows.h index c7679f5c..bd54249d 100644 --- a/miniwin/include/miniwin/windows.h +++ b/miniwin/include/miniwin/windows.h @@ -79,7 +79,7 @@ typedef struct HWND__* HWND; typedef HINSTANCE HMODULE; typedef struct HDC__* HDC; typedef struct HPALETTE__* HPALETTE; -typedef struct HCURSOR__* HCURSOR; +typedef HICON HCURSOR; typedef HANDLE HFILE; typedef int LSTATUS, HKEY, REGSAM;