Set svn:eol-style "native" for all apitest stuff
[reactos.git] / rostests / apitests / w32knapi / ntgdi / NtGdiEnumFontOpen.c
index 3ef0d01..c957493 100644 (file)
@@ -1,36 +1,36 @@
-\r
-INT\r
-Test_NtGdiEnumFontOpen(PTESTINFO pti)\r
-{\r
-       HDC hDC;\r
-       ULONG_PTR idEnum;\r
-       ULONG ulCount;\r
-       PGDI_TABLE_ENTRY pEntry;\r
-\r
-       hDC = CreateDCW(L"DISPLAY",NULL,NULL,NULL);\r
-\r
-       // FIXME: We should load the font first\r
-\r
-       idEnum = NtGdiEnumFontOpen(hDC, 2, 0, 32, L"Courier", ANSI_CHARSET, &ulCount);\r
-       ASSERT(idEnum != 0);\r
-\r
-       /* we should have a gdi handle here */\r
-       TEST(GDI_HANDLE_GET_TYPE(idEnum) == GDI_OBJECT_TYPE_ENUMFONT);\r
-       pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(idEnum)];\r
-       TEST(pEntry->KernelData != NULL);\r
-       TEST(pEntry->ProcessId == GetCurrentProcessId());\r
-       TEST(pEntry->UserData == 0);\r
-       TEST(pEntry->Type == ((idEnum >> 16) | GDI_OBJECT_TYPE_ENUMFONT));\r
-\r
-       /* We should not be able to use DeleteObject() on the handle */\r
-       TEST(DeleteObject((HGDIOBJ)idEnum) == FALSE);\r
-\r
-       NtGdiEnumFontClose(idEnum);\r
-\r
-       // Test no logfont (NULL): should word\r
-       // Test empty lfFaceName string: should not work\r
-\r
-\r
-       return APISTATUS_NORMAL;\r
-}\r
-\r
+
+INT
+Test_NtGdiEnumFontOpen(PTESTINFO pti)
+{
+       HDC hDC;
+       ULONG_PTR idEnum;
+       ULONG ulCount;
+       PGDI_TABLE_ENTRY pEntry;
+
+       hDC = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
+
+       // FIXME: We should load the font first
+
+       idEnum = NtGdiEnumFontOpen(hDC, 2, 0, 32, L"Courier", ANSI_CHARSET, &ulCount);
+       ASSERT(idEnum != 0);
+
+       /* we should have a gdi handle here */
+       TEST(GDI_HANDLE_GET_TYPE(idEnum) == GDI_OBJECT_TYPE_ENUMFONT);
+       pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(idEnum)];
+       TEST(pEntry->KernelData != NULL);
+       TEST(pEntry->ProcessId == GetCurrentProcessId());
+       TEST(pEntry->UserData == 0);
+       TEST(pEntry->Type == ((idEnum >> 16) | GDI_OBJECT_TYPE_ENUMFONT));
+
+       /* We should not be able to use DeleteObject() on the handle */
+       TEST(DeleteObject((HGDIOBJ)idEnum) == FALSE);
+
+       NtGdiEnumFontClose(idEnum);
+
+       // Test no logfont (NULL): should word
+       // Test empty lfFaceName string: should not work
+
+
+       return APISTATUS_NORMAL;
+}
+