* advapi32.cc (AllocateLocallyUniqueId): Remove.

* fhandler_disk_file.cc (fhandler_base::open_fs): Replace call to
	AllocateLocallyUniqueId with call to NtAllocateLocallyUniqueId;
	* posix_ipc.cc (mq_open): Ditto.  Drop error handling for that call.
	(sem_open): Ditto.
This commit is contained in:
Corinna Vinschen
2011-04-28 08:15:56 +00:00
parent f97612978a
commit 41e9c14558
4 changed files with 11 additions and 18 deletions

View File

@ -419,11 +419,7 @@ again:
mqhdr->mqh_attr.mq_curmsgs = 0;
mqhdr->mqh_nwait = 0;
mqhdr->mqh_pid = 0;
if (!AllocateLocallyUniqueId (&luid))
{
__seterrno ();
goto err;
}
NtAllocateLocallyUniqueId (&luid);
__small_sprintf (mqhdr->mqh_uname, "%016X%08x%08x",
hash_path_name (0,mqname),
luid.HighPart, luid.LowPart);
@ -1008,11 +1004,7 @@ again:
}
created = 1;
/* First one to create the file initializes it. */
if (!AllocateLocallyUniqueId (&sf.luid))
{
__seterrno ();
goto err;
}
NtAllocateLocallyUniqueId (&sf.luid);
sf.value = value;
sf.hash = hash_path_name (0, semname);
if (write (fd, &sf, sizeof sf) != sizeof sf)