diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index 8263e083..2032cb8e 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -1734,15 +1734,15 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC needExit = !TGRunTOSDialog (); else { - HINSTANCE hRichEdDll = LoadLibrary("RICHED20.DLL"); - INT_PTR val = ::DialogBoxParam( hInst, MAKEINTRESOURCE( IDD_URULOGIN_EULA ), NULL, UruTOSDialogProc, (LPARAM)hInst); - FreeLibrary(hRichEdDll); - if (val <= 0) { - DWORD error = GetLastError(); - needExit = true; + HINSTANCE hRichEdDll = LoadLibrary("RICHED20.DLL"); + INT_PTR val = ::DialogBoxParam( hInst, MAKEINTRESOURCE( IDD_URULOGIN_EULA ), NULL, UruTOSDialogProc, (LPARAM)hInst); + FreeLibrary(hRichEdDll); + if (val <= 0) { + DWORD error = GetLastError(); + needExit = true; + } } } - } curl_global_cleanup();