mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
Another test for AddFontResourceEx
svn path=/trunk/; revision=30849
This commit is contained in:
parent
3ac4bd2b4f
commit
a63375b80e
1 changed files with 11 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue