Skip to content

Commit

Permalink
chore: Minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra authored Jun 15, 2024
1 parent 7d58368 commit 2bd14f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int StartupEvents() {

// Register the main window class
wc.style = 0;
wc.lpfnWndProc = (WNDPROC)EventsWndProc;
wc.lpfnWndProc = EventsWndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = events_instance;
Expand Down
4 changes: 2 additions & 2 deletions winsock2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ void DebugLog(const char* fmt, ...) {
va_end(args);

MessageBox(NULL, buf, "WINSOCK351", 0);
delete buf;
}
#else
#define DebugLog
Expand All @@ -28,8 +29,7 @@ int WSAAPI WINSOCK351_ioctlsocket(SOCKET s, long cmd, u_long* argp) {
return ioctlsocket(s, cmd, argp);
}

int WSAAPI WINSOCK351_select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const timeval* timeout)
{
int WSAAPI WINSOCK351_select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const timeval* timeout) {
DebugLog("select: nfds: %d, timeout: %d", nfds, timeout != NULL ? timeout->tv_sec * 1000000 + timeout->tv_usec : 0);
return select(nfds, readfds, writefds, exceptfds, timeout);
}
Expand Down

0 comments on commit 2bd14f2

Please sign in to comment.