summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_gdiplus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_gdiplus.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_gdiplus.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/plugins/Clist_modern/src/modern_gdiplus.cpp b/plugins/Clist_modern/src/modern_gdiplus.cpp
index 972105cfb1..f4241b4778 100644
--- a/plugins/Clist_modern/src/modern_gdiplus.cpp
+++ b/plugins/Clist_modern/src/modern_gdiplus.cpp
@@ -22,26 +22,15 @@ int g_hottrack;
void InitGdiPlus(void)
{
GdiplusStartupInput gdiplusStartupInput;
- g_CluiData.fGDIPlusFail = false;
- __try {
- if (g_gdiplusToken == 0)
- GdiplusStartup(&g_gdiplusToken, &gdiplusStartupInput, NULL);
- }
- __except ( EXCEPTION_EXECUTE_HANDLER ) {
- g_CluiData.fGDIPlusFail = true;
- }
+ if (g_gdiplusToken == 0)
+ GdiplusStartup(&g_gdiplusToken, &gdiplusStartupInput, NULL);
}
void ShutdownGdiPlus(void)
{
GdiplusStartupInput gdiplusStartupInput;
- __try {
- if (g_gdiplusToken)
- GdiplusShutdown(g_gdiplusToken);
- }
- __except ( EXCEPTION_EXECUTE_HANDLER ) {
- g_CluiData.fGDIPlusFail = true;
- }
+ if (g_gdiplusToken)
+ GdiplusShutdown(g_gdiplusToken);
g_gdiplusToken = 0;
}