Skip to content

Commit

Permalink
Fix command handling bug in wt-monitor (#2736)
Browse files Browse the repository at this point in the history
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
  • Loading branch information
feiniks and 杨赫然 committed Jan 31, 2024
1 parent 1205821 commit 6c869d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/wt-monitor-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ start_watch_cmd_pipe (SeafWTMonitor *monitor, OVERLAPPED *ol_in)

HANDLE hPipe = (HANDLE)monitor->cmd_pipe[0];

void *p = &priv->cmd + priv->cmd_bytes_read;
void *p = (char *)(&priv->cmd) + priv->cmd_bytes_read;
int to_read = sizeof(WatchCommand) - priv->cmd_bytes_read;

BOOL sts = ReadFile
Expand Down

0 comments on commit 6c869d4

Please sign in to comment.