Another test for AddFontResourceEx

svn path=/trunk/; revision=30849
This commit is contained in:
Timo Kreuzer 2007-11-28 23:45:23 +00:00
parent 3ac4bd2b4f
commit a63375b80e

View file

@ -5,6 +5,17 @@ Test_AddFontResourceEx(PTESTINFO pti)
{
WCHAR szFileName[MAX_PATH];
/* Test NULL filename */
SetLastError(ERROR_SUCCESS);
/* Windows crashes, would need SEH here */
// TEST(AddFontResourceExW(NULL, 0, 0) != 0);
// TEST(GetLastError() == ERROR_SUCCESS);
/* Test "" filename */
SetLastError(ERROR_SUCCESS);
TEST(AddFontResourceExW(L"", 0, 0) == 0);
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
GetEnvironmentVariableW(L"systemroot", szFileName, MAX_PATH);
wcscat(szFileName, L"\\Fonts\\cour.ttf");