Commit fcf353f2 authored by James Juran's avatar James Juran Committed by Alexandre Julliard

Check for drivers==NULL before trying to delete them at exit. This

could happen if the emulator initialization failed for some reason and the drivers hadn't been initialized yet.
parent 73663071
......@@ -756,7 +756,9 @@ static void MAIN_ParseOptions( int *argc, char *argv[] )
*/
static void called_at_exit(void)
{
if (GDI_Driver)
GDI_Driver->pFinalize();
if (USER_Driver)
USER_Driver->pFinalize();
WINSOCK_Shutdown();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment