Gabriel Ivăncescu : ntdll: Fix offsetof syntax for IOCTL_AFD_WINE_GET_IRLMP_ENUMDEVICES.

Alexandre Julliard julliard at winehq.org
Wed Aug 4 16:41:38 CDT 2021


Module: wine
Branch: master
Commit: 26724c3ef40b9ef874b5b6baa28f3572c73946d3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=26724c3ef40b9ef874b5b6baa28f3572c73946d3

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Wed Aug  4 17:43:50 2021 +0300

ntdll: Fix offsetof syntax for IOCTL_AFD_WINE_GET_IRLMP_ENUMDEVICES.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/unix/socket.c b/dlls/ntdll/unix/socket.c
index 0e52db178d8..9dc697ea959 100644
--- a/dlls/ntdll/unix/socket.c
+++ b/dlls/ntdll/unix/socket.c
@@ -1976,7 +1976,7 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
             if (needs_close) close( fd );
             if (ret) return sock_errno_to_status( errno );
 
-            io->Information = offsetof( DEVICELIST, unix_list->len );
+            io->Information = offsetof( DEVICELIST, Device[unix_list->len] );
             if (out_size < io->Information)
                 return STATUS_BUFFER_TOO_SMALL;
 




More information about the wine-cvs mailing list