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:
2
vendor/DPP/src/dpp/discordevents.cpp
vendored
2
vendor/DPP/src/dpp/discordevents.cpp
vendored
@@ -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());
|
||||
}
|
||||
|
2
vendor/DPP/src/dpp/httplib.cpp
vendored
2
vendor/DPP/src/dpp/httplib.cpp
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user