Commit 9b24f2a0 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winhelp: Make richedit the default for rendering.

parent f55da6db
......@@ -251,7 +251,11 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
Globals.hInstance = hInstance;
use_richedit = getenv("WINHELP_RICHEDIT") != NULL;
/* don't use richedit for rendering when WINHELP_RICHEDIT environment variable is 0 */
{
const char* p = getenv("WINHELP_RICHEDIT");
use_richedit = !p || *p != '0';
}
if (use_richedit && LoadLibrary("riched20.dll") == NULL)
return MessageBox(0, MAKEINTRESOURCE(STID_NO_RICHEDIT),
MAKEINTRESOURCE(STID_WHERROR), MB_OK);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment