Dmitry Timoshkov : server: Don' t stop processing change notifications when name length is 0.
Alexandre Julliard
julliard at winehq.org
Wed Nov 7 14:47:32 CST 2018
Module: wine
Branch: master
Commit: 48e5273cd5487b2e4b5149bb8b32916de417c0cd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=48e5273cd5487b2e4b5149bb8b32916de417c0cd
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Nov 6 17:05:43 2018 +0300
server: Don't stop processing change notifications when name length is 0.
It's legitimate to receive a notification with len = 0.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/change.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/server/change.c b/server/change.c
index d00a885..3335e7a 100644
--- a/server/change.c
+++ b/server/change.c
@@ -949,11 +949,9 @@ static void inotify_poll_event( struct fd *fd, int event )
for( ofs = 0; ofs < r - offsetof(struct inotify_event, name); )
{
ie = (struct inotify_event*) &buffer[ofs];
- if (!ie->len)
- break;
ofs += offsetof( struct inotify_event, name[ie->len] );
if (ofs > r) break;
- inotify_notify_all( ie );
+ if (ie->len) inotify_notify_all( ie );
}
}
More information about the wine-cvs
mailing list