winhelp: Make richedit the default for rendering.

This commit is contained in:
Eric Pouech 2008-04-28 21:16:09 +02:00 committed by Alexandre Julliard
parent f55da6db84
commit 9b24f2a050
1 changed files with 5 additions and 1 deletions

View File

@ -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);