1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-08-02 22:21:48 +02:00

DPP update fixes.

This commit is contained in:
Sandu Liviu Catalin
2021-09-18 21:24:49 +03:00
parent b978bc5046
commit e3c32e4788
4 changed files with 6 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ char* strptime(const char* s, const char* f, struct tm* tm) {
input.imbue(std::locale(setlocale(LC_ALL, nullptr)));
input >> std::get_time(tm, f);
if (input.fail()) {
return "";
return const_cast<char*>("");
}
return (char*)(s + input.tellg());
}

View File

@@ -386,6 +386,8 @@ int close_socket(socket_t sock) {
if (sock >= 0 && sock < FD_SETSIZE) {
return closesocket(sock);
}
assert(0);
return -1;
#else
return close(sock);
#endif