Fix line endings.
This commit is contained in:
parent
decb9c639a
commit
192672d072
@ -5262,10 +5262,10 @@ static bool test_if_number(register const char *str,
|
||||
void sql_perror(const char *message)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
char* buf;
|
||||
DWORD dw= GetLastError();
|
||||
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dw,
|
||||
char* buf;
|
||||
DWORD dw= GetLastError();
|
||||
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS, NULL, dw,
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&buf, 0, NULL ) > 0)
|
||||
{
|
||||
sql_print_error("%s: %s",message, buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user