mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[UXTHEME_APITEST] -Add a test to show that CloseThemeData doesn't use exception handling.
svn path=/trunk/; revision=74128
This commit is contained in:
parent
5855a53b74
commit
48c9363c36
3 changed files with 33 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
|
||||
list(APPEND SOURCE
|
||||
CloseThemeData.c
|
||||
DrawThemeParentBackground.c
|
||||
../include/msgtrace.c
|
||||
testlist.c)
|
||||
|
|
30
rostests/apitests/uxtheme/CloseThemeData.c
Normal file
30
rostests/apitests/uxtheme/CloseThemeData.c
Normal file
|
@ -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);
|
||||
}
|
|
@ -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 }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue