From 2dac9aa7dc5f303aca13c8472655675663f03a7d Mon Sep 17 00:00:00 2001 From: schulz Date: Sat, 12 Jan 2019 23:18:42 +0000 Subject: [PATCH] Initialize lib_OpenCnt of DOS. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@55534 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/dos/dos_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rom/dos/dos_init.c b/rom/dos/dos_init.c index 0185a60944..2b31536513 100644 --- a/rom/dos/dos_init.c +++ b/rom/dos/dos_init.c @@ -167,6 +167,7 @@ AROS_UFH3S(struct DosLibrary *, DosInit, DOSBase->dl_lib.lib_Revision = REVISION_NUMBER; DOSBase->dl_lib.lib_IdString = (char *)&version[6]; DOSBase->dl_lib.lib_Flags = LIBF_SUMUSED|LIBF_CHANGED; + DOSBase->dl_lib.lib_OpenCnt = 0; /* * These two are allocated together with DOSBase, for reduced fragmentation. @@ -309,7 +310,7 @@ static void DosExpunge(struct DosLibrary *DOSBase) * Someone is holding us... Perhaps some handler started subprocess * which didn't quit. Who knows... */ - D(bug("[DosInit] Open count is %d, can't expunge\n")); + D(bug("[DosInit] Open count is %d, can't expunge\n", DOSBase->dl_lib.lib_OpenCnt)); return; } -- 2.11.4.GIT