[vds] improve VDS error reporting

This commit is contained in:
Pete Batard 2020-11-13 17:51:48 +00:00
parent 35b0ab2470
commit 0e43c5f2ea
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 44 additions and 39 deletions

View file

@ -54,7 +54,7 @@
#define FILE_FLOPPY_DISKETTE 0x00000004
#define VDS_SET_ERROR(hr) do { if (hr != S_OK) { hr = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|ERROR_GEN_FAILURE; FormatStatus = hr; SetLastError(hr); } } while(0)
#define VDS_SET_ERROR(hr) do { if (hr != S_OK) { SetLastError(hr); FormatStatus = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|ERROR_GEN_FAILURE; } } while(0)
#if !defined(__MINGW32__)
typedef enum _FSINFOCLASS {