30 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
36 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
42 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
48 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
54 ok(
result == 1,
"AddFontResourceA(\"%s\") failed, result=%d\n", szFileNameFont1,
result);
67 sprintf(szFileName,
"%s|%s",szFileNameFont1, szFileNameFont2);
69 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
73 sprintf(szFileName,
"%s |%s",szFileNameFont1, szFileNameFont2);
75 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
79 sprintf(szFileName,
"%s | %s",szFileNameFont1, szFileNameFont2);
81 ok(
result == 0,
"AddFontResourceA succeeded, result=%d\n",
result);
89 sprintf(szFileName,
"%s|%s", szFileNameFont1, szFileNameFont2);
91 ok(
result == 1,
"AddFontResourceA(\"%s|%s\") failed, result=%d\n",
92 szFileNameFont1, szFileNameFont2,
result);
96 sprintf(szFileName,
"%s | %s", szFileNameFont1, szFileNameFont2);
98 ok(
result == 0,
"AddFontResourceA(\"%s | %s\") succeeded, result=%d\n",
99 szFileNameFont1, szFileNameFont2,
result);
103 sprintf(szFileName,
"%s|%s", szFileNameFont2, szFileNameFont1);
105 ok(
result == 0,
"AddFontResourceA(\"%s|%s\") succeeded, result=%d\n",
106 szFileNameFont2, szFileNameFont1,
result);
void Test_AddFontResourceA()
#define ERROR_INVALID_PARAMETER
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
#define ERROR_FILE_NOT_FOUND
#define sprintf(buf, format,...)
DWORD WINAPI GetLastError(void)
int WINAPI AddFontResourceA(_In_ LPCSTR pszFilename)
BOOL WINAPI RemoveFontResourceA(_In_ LPCSTR)