Author: gadamopoulos
Date: Wed Mar 8 15:15:19 2017
New Revision: 74128
URL:
http://svn.reactos.org/svn/reactos?rev=74128&view=rev
Log:
[UXTHEME_APITEST] -Add a test to show that CloseThemeData doesn't use exception
handling.
Added:
trunk/rostests/apitests/uxtheme/CloseThemeData.c (with props)
Modified:
trunk/rostests/apitests/uxtheme/CMakeLists.txt
trunk/rostests/apitests/uxtheme/testlist.c
Modified: trunk/rostests/apitests/uxtheme/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/uxtheme/CMakeLis…
==============================================================================
--- trunk/rostests/apitests/uxtheme/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/apitests/uxtheme/CMakeLists.txt [iso-8859-1] Wed Mar 8 15:15:19 2017
@@ -1,5 +1,6 @@
list(APPEND SOURCE
+ CloseThemeData.c
DrawThemeParentBackground.c
../include/msgtrace.c
testlist.c)
Added: trunk/rostests/apitests/uxtheme/CloseThemeData.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/uxtheme/CloseThe…
==============================================================================
--- trunk/rostests/apitests/uxtheme/CloseThemeData.c (added)
+++ trunk/rostests/apitests/uxtheme/CloseThemeData.c [iso-8859-1] Wed Mar 8 15:15:19
2017
@@ -0,0 +1,30 @@
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PURPOSE: Test for CloseThemeData
+ * PROGRAMMERS: Giannis Adamopoulos
+ */
+
+#include <apitest.h>
+#include <stdio.h>
+#include <windows.h>
+#include <uxtheme.h>
+
+static LONG WINAPI VEHandler(PEXCEPTION_POINTERS ExceptionInfo)
+{
+ ok(FALSE, "VEHandler called!\n");
+ return EXCEPTION_CONTINUE_SEARCH;
+}
+
+START_TEST(CloseThemeData)
+{
+ PVOID pVEH;
+ HRESULT hr;
+
+ pVEH = AddVectoredExceptionHandler(1, VEHandler);
+
+ hr = CloseThemeData((HTHEME)0xdeaddead);
+ ok( hr == E_HANDLE, "Expected E_HANDLE, got 0x%lx\n", hr);
+
+ RemoveVectoredExceptionHandler(pVEH);
+}
Propchange: trunk/rostests/apitests/uxtheme/CloseThemeData.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/rostests/apitests/uxtheme/testlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/uxtheme/testlist…
==============================================================================
--- trunk/rostests/apitests/uxtheme/testlist.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/uxtheme/testlist.c [iso-8859-1] Wed Mar 8 15:15:19 2017
@@ -4,9 +4,11 @@
#include <apitest.h>
extern void func_DrawThemeParentBackground(void);
+extern void func_CloseThemeData(void);
const struct test winetest_testlist[] =
{
{ "DrawThemeParentBackground", func_DrawThemeParentBackground },
+ { "CloseThemeData", func_CloseThemeData },
{ 0, 0 }
};