aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/util.cpp
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-08-28 17:02:54 +0100
committerauth12 <[email protected]>2020-08-28 17:02:54 +0100
commit1b7783f8e0b864d81c8ab7bb4d83cd2f789b0d48 (patch)
treeda0324fe611754ac7a816c9a96eafa84a8cf5e4b /client/src/util/util.cpp
parentImproved CPU usage drastically. (diff)
downloadloader-1b7783f8e0b864d81c8ab7bb4d83cd2f789b0d48.tar.xz
loader-1b7783f8e0b864d81c8ab7bb4d83cd2f789b0d48.zip
Added version checks on server.
Changed main thread behaviour. Fixed events bug where packet seq would get corrupted. Changed session packet behaviour.
Diffstat (limited to 'client/src/util/util.cpp')
-rw-r--r--client/src/util/util.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/client/src/util/util.cpp b/client/src/util/util.cpp
index 7103604..b78d616 100644
--- a/client/src/util/util.cpp
+++ b/client/src/util/util.cpp
@@ -39,11 +39,6 @@ std::wstring util::multibyte_to_wide(const std::string& str) {
}
bool util::close_handle(HANDLE handle) {
- if (!handle) {
- io::log_error("invalid handle to close.");
- return false;
- }
-
static auto nt_close = g_syscalls.get<native::NtClose>("NtClose");
auto status = nt_close(handle);