On Sunday, 24 April 2016 11:43 PM, Sebastian Lackner wrote:
You'll have to add a stub first, otherwise it breaks the tests:
I always thought the if check was supposed to guard against such crashes.
hmod = GetModuleHandleA("kernel32.dll"); pGetConsoleFontInfo = (void *)GetProcAddress(hmod, "GetConsoleFontInfo"); if (!pGetConsoleFontInfo) { win_skip("GetConsoleFontInfo is not available\n"); return; }
Anyway, I'm preparing a new version of the patch with additional tests, as I've worked out the values returned by this function.