* cygthread.cc (cygthread::detach): Make error message a little more detailed.
* fhandler.cc (fhandler_base::raw_read): Ditto for debug message. * dcrt0.cc (do_exit): Add some more synchronization tests. * fhandler_fifo.cc (fhandler_fifo::dup): Don't duplicate a nonexistent handle. Use derived return value rather than always retuning 0. * fhandler_netdrive.cc (fhandler_netdrive::exists): Wnet -> WNet. * winsup.h (exit_states): Add a couple of new exit states.
This commit is contained in:
@@ -123,7 +123,7 @@ fhandler_netdrive::exists ()
|
||||
nr.lpLocalName = NULL;
|
||||
nr.lpRemoteName = namebuf;
|
||||
DWORD ret = create_thread_and_wait (GET_RESOURCE_INFO, &nr, NULL, 0,
|
||||
"WnetGetResourceInformation");
|
||||
"WNetGetResourceInformation");
|
||||
if (ret != ERROR_MORE_DATA && ret != NO_ERROR)
|
||||
return 0;
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user