From 3edf5a41cc67e333450a6a55205db7cf969b7216 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 9 Oct 2005 15:12:13 +0000 Subject: [PATCH] fix crash because of NULL command line pointer svn path=/trunk/; revision=18378 --- reactos/subsys/system/explorer/explorer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/explorer/explorer.cpp b/reactos/subsys/system/explorer/explorer.cpp index b6558a3e374..e65a78c77bf 100644 --- a/reactos/subsys/system/explorer/explorer.cpp +++ b/reactos/subsys/system/explorer/explorer.cpp @@ -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);