Output the error number and not just the text string when reporting
failures from CreateFile.
(va_list *) NULL
) )
{
- fprintf(stderr,"pioctl CreateFile(%s) failed: [%s]\r\n",tbuffer,buf);
+ fprintf(stderr,"pioctl CreateFile(%s) failed: 0x%8X\r\n\t[%s]\r\n",
+ tbuffer,gle,buf);
}
}
if (gle != ERROR_DOWNGRADE_DETECTED)
(va_list *) NULL
) )
{
- fprintf(stderr,"pioctl CreateFile(%s) failed: [%s]\r\n",tbuffer,buf);
+ fprintf(stderr,"pioctl CreateFile(%s) failed: 0x%8X\r\n\t[%s]\r\n",
+ tbuffer,gle,buf);
}
}
return -1;