fix crash because of NULL command line pointer
authorMartin Fuchs <fuchs.martin@gmail.com>
Sun, 9 Oct 2005 15:12:13 +0000 (15:12 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Sun, 9 Oct 2005 15:12:13 +0000 (15:12 +0000)
svn path=/trunk/; revision=18378

reactos/subsys/system/explorer/explorer.cpp

index b6558a3..e65a78c 100644 (file)
@@ -561,7 +561,8 @@ void explorer_show_frame(int cmdShow, LPTSTR lpCmdLine)
        cmd._cmdShow = cmdShow;
 
         // parse command line options, which may overwrite the MDI flag
-       cmd.ParseCmdLine(lpCmdLine);
+       if (lpCmdLine)
+               cmd.ParseCmdLine(lpCmdLine);
 
         // create main window
        MainFrameBase::Create(cmd);