mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 03:23:03 +01:00
CORE-2484 Thanks to Bill Oliver.
This commit is contained in:
parent
d599e4cbb1
commit
e1c700dc4c
@ -1132,16 +1132,17 @@ static bool nt_error(const TEXT* string,
|
|||||||
* to do something about it. Harumph!
|
* to do something about it. Harumph!
|
||||||
*
|
*
|
||||||
**************************************/
|
**************************************/
|
||||||
|
const DWORD lastError = GetLastError();
|
||||||
|
Arg::StatusVector status;
|
||||||
|
status << Arg::Gds(isc_io_error) << Arg::Str(string) << Arg::Str(file->fil_string) <<
|
||||||
|
Arg::Gds(operation);
|
||||||
|
if (lastError != ERROR_SUCCESS)
|
||||||
|
status << Arg::Windows(lastError);
|
||||||
|
|
||||||
if (!status_vector)
|
if (!status_vector)
|
||||||
{
|
ERR_post(status);
|
||||||
ERR_post(Arg::Gds(isc_io_error) << Arg::Str(string) << Arg::Str(file->fil_string) <<
|
|
||||||
Arg::Gds(operation) << Arg::Windows(GetLastError()));
|
|
||||||
}
|
|
||||||
|
|
||||||
ERR_build_status(status_vector,
|
|
||||||
Arg::Gds(isc_io_error) << Arg::Str(string) << Arg::Str(file->fil_string) <<
|
|
||||||
Arg::Gds(operation) << Arg::Windows(GetLastError()));
|
|
||||||
|
|
||||||
|
ERR_build_status(status_vector, status);
|
||||||
gds__log_status(0, status_vector);
|
gds__log_status(0, status_vector);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user