Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-05-12 16:28:59 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-05-12 16:28:59 +0400
commit191ea07aa5eff3a377f9b5eed6c25755965d4ccb (patch)
tree100c87cd8201325d73a63b57e15ebe76587c42fe /winsup/cygwin/fhandler_tape.cc
parent8bdfa78a69bf543f55cc05940fa698262fcd1010 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r--winsup/cygwin/fhandler_tape.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index 1309b3ba8..a8d0f3294 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -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 ();
}