Frédéric Delanoy frederic.delanoy@gmail.com writes:
@@ -27,9 +27,13 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmds
HMODULE hModule; DOWINMAIN *doWinMain;
int res;
hModule = LoadLibraryA("hhctrl.ocx"); doWinMain = (DOWINMAIN*) GetProcAddress(hModule, "doWinMain");
- return doWinMain(hInst, cmdline);
- res = doWinMain(hInst, cmdline);
- FreeLibrary(hModule);
- return res;
Freeing things on process exit is not useful.