cygwin: further improve tags generation

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2017-11-28 13:10:34 +01:00
parent 032aa2dba5
commit 662740b3d0
2 changed files with 5 additions and 1 deletions

View File

@ -1635,8 +1635,10 @@ fhandler_disk_file::pwrite (void *buf, size_t count, off_t offset)
if (!prw_handle && prw_open (true))
goto non_atomic;
debug_printf ("Before NtWriteFile, io %Y", io.Information);
status = NtWriteFile (prw_handle, NULL, NULL, NULL, &io, buf, count,
&off, NULL);
debug_printf ("After NtWriteFile, io %Y, status %y", io.Information);
if (!NT_SUCCESS (status))
{
__seterrno_from_nt_status (status);