gdi: AddFontResource needs to support a second default directory

Alexandre Julliard julliard at winehq.org
Tue Aug 21 06:54:01 CDT 2007


"Dan Kegel" <dank at kegel.com> writes:

> @@ -1727,6 +1736,22 @@ INT WineEngAddFontResourceEx(LPCWSTR file, DWORD flags, PVOID pdv)
>          {
>              INT ret = AddFontFileToList(unixname, NULL, NULL, ADDFONT_FORCE_BITMAP);
>              HeapFree(GetProcessHeap(), 0, unixname);
> +            if (!ret && !strchrW(file, '\\')) {
> +                /* http://support.installshield.com/kb/view.asp?pcode=ALL&articleid=Q100057
> +                 * suggests that in older versions of Windows, AddFontResource
> +                 * paths were relative to %WINDIR%/Fonts instead of %WINDIR%/System
> +                 * Retry assuming that's what went wrong.
> +                 */

This comment is misleading, fonts are in WINDIR/fonts in all Windows
versions, and we never look in WINDIR/system anyway.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list