diff --git a/desmume/src/windows/DeSmuME_2008.vcproj b/desmume/src/windows/DeSmuME_2008.vcproj
index 8a3bc1da6..3429ded08 100644
--- a/desmume/src/windows/DeSmuME_2008.vcproj
+++ b/desmume/src/windows/DeSmuME_2008.vcproj
@@ -1,7 +1,7 @@
+
+using namespace Gdiplus;
+
//----Recent ROMs menu globals----------
vector RecentRoms; //The list of recent ROM filenames
const unsigned int MAX_RECENT_ROMS = 10; //To change the recent rom max, simply change this number
@@ -1302,6 +1306,17 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
int nFunsterStil)
{
+ ULONG_PTR GdiplusToken;
+ GdiplusStartupInput GdiplusSI;
+
+ GdiplusSI.GdiplusVersion = 1;
+
+ if(GdiplusStartup(&GdiplusToken, &GdiplusSI, NULL) != Ok)
+ {
+ MessageBox(0, "Failed to initialize GDI+ !", "Severe error", MB_OK | MB_ICONERROR);
+ return 1;
+ }
+
InitializeCriticalSection(&win_sync);
#ifdef GDB_STUB
@@ -1635,6 +1650,8 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
CloseConsole();
+ GdiplusShutdown(GdiplusToken);
+
return 0;
}