* cygheap.h (struct init_cygheap): Add mt_h member.

* fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle.
	(mtinfo_init): Use cygheap->mt_h handle.  Protect it.
This commit is contained in:
Corinna Vinschen
2004-05-12 12:28:59 +00:00
parent 8bdfa78a69
commit 191ea07aa5
3 changed files with 10 additions and 3 deletions

View File

@@ -1169,13 +1169,13 @@ mtinfo::initialize (void)
}
}
HANDLE mt_h;
mtinfo *mt;
void __stdcall
mtinfo_init ()
{
mt = (mtinfo *) open_shared ("mtinfo", MTINFO_VERSION, mt_h, sizeof (mtinfo), SH_MTINFO);
mt = (mtinfo *) open_shared ("mtinfo", MTINFO_VERSION, cygheap->mt_h, sizeof (mtinfo), SH_MTINFO);
ProtectHandleINH (cygheap->mt_h);
mt->initialize ();
}