mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-07 03:17:13 +08:00
Fix command handling bug in wt-monitor (#2736)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
parent
12058215fc
commit
6c869d42dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user