Author: tkreuzer
Date: Fri Sep 28 02:32:09 2007
New Revision: 29263
URL:
http://svn.reactos.org/svn/reactos?rev=29263&view=rev
Log:
add another small test for AddFontResource
Modified:
trunk/rostests/apitests/gdi32api/tests/AddFontResourceEx.c
Modified: trunk/rostests/apitests/gdi32api/tests/AddFontResourceEx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/A…
==============================================================================
--- trunk/rostests/apitests/gdi32api/tests/AddFontResourceEx.c (original)
+++ trunk/rostests/apitests/gdi32api/tests/AddFontResourceEx.c Fri Sep 28 02:32:09 2007
@@ -1,12 +1,14 @@
+#define STAMP_DESIGNVECTOR (0x8000000 + 'd' + ('v' << 8))
INT
Test_AddFontResourceEx(PTESTINFO pti)
{
WCHAR szFileName[MAX_PATH];
+
GetEnvironmentVariableW(L"systemroot", szFileName, MAX_PATH);
-
wcscat(szFileName, L"\\Fonts\\cour.ttf");
+ /* Test flags = 0 */
SetLastError(ERROR_SUCCESS);
TEST(AddFontResourceExW(szFileName, 0, 0) != 0);
TEST(GetLastError() == ERROR_SUCCESS);
@@ -15,5 +17,9 @@
TEST(AddFontResourceExW(szFileName, 256, 0) == 0);
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
+ /* Test invalid pointer as last parameter */
+ TEST(AddFontResourceExW(szFileName, 0, (void*)-1) != 0);
+
+
return APISTATUS_NORMAL;
}