From f61af61f7aa950f26797a4436dacbe9aefac223f Mon Sep 17 00:00:00 2001 From: bebbo Date: Fri, 28 Jun 2024 10:22:23 +0200 Subject: [PATCH] refs #84: ->sm_ArgList->wa_Lock may be null --- sources/nix20/misc/__nocommandline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/nix20/misc/__nocommandline.c b/sources/nix20/misc/__nocommandline.c index 17765f0..92b2ae4 100644 --- a/sources/nix20/misc/__nocommandline.c +++ b/sources/nix20/misc/__nocommandline.c @@ -62,7 +62,7 @@ void __nocommandline(void) SelectInput(win); SelectOutput(win); } - if(wbs->sm_ArgList!=NULL) /* cd to icon */ + if(wbs->sm_ArgList!=NULL && wbs->sm_ArgList->wa_Lock) /* cd to icon */ cd=CurrentDir(DupLock(wbs->sm_ArgList->wa_Lock)); __argc=0;