Author: cgutman
Date: Mon Sep 3 22:00:16 2012
New Revision: 57230
URL:
http://svn.reactos.org/svn/reactos?rev=57230&view=rev
Log:
[MSAFD]
- Fix access rights on socket events
Modified:
trunk/reactos/dll/win32/msafd/misc/dllmain.c
trunk/reactos/dll/win32/msafd/misc/event.c
trunk/reactos/dll/win32/msafd/misc/sndrcv.c
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllma…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Mon Sep 3 22:00:16 2012
@@ -409,7 +409,7 @@
/* Create the Wait Event */
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -615,7 +615,7 @@
}
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -737,7 +737,7 @@
return 0;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -863,7 +863,7 @@
}
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -1062,7 +1062,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -1447,7 +1447,7 @@
int SocketDataLength;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -1682,7 +1682,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -1764,7 +1764,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -1867,7 +1867,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -2443,7 +2443,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -2510,7 +2510,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
@@ -2592,7 +2592,7 @@
HANDLE SockEvent;
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL,
1,
FALSE);
Modified: trunk/reactos/dll/win32/msafd/misc/event.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/event…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/event.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/event.c [iso-8859-1] Mon Sep 3 22:00:16 2012
@@ -27,7 +27,7 @@
BOOLEAN BlockMode;
HANDLE SockEvent;
- Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
+ Status = NtCreateEvent( &SockEvent, EVENT_ALL_ACCESS,
NULL, 1, FALSE );
if( !NT_SUCCESS(Status) ) return -1;
@@ -146,7 +146,7 @@
AFD_DbgPrint(MID_TRACE,("Called (lpNetworkEvents %x)\n",
lpNetworkEvents));
- Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
+ Status = NtCreateEvent( &SockEvent, EVENT_ALL_ACCESS,
NULL, 1, FALSE );
if( !NT_SUCCESS(Status) ) {
Modified: trunk/reactos/dll/win32/msafd/misc/sndrcv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/sndrc…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/sndrcv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/sndrcv.c [iso-8859-1] Mon Sep 3 22:00:16 2012
@@ -123,7 +123,7 @@
return SOCKET_ERROR;
}
- Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
+ Status = NtCreateEvent( &SockEvent, EVENT_ALL_ACCESS,
NULL, 1, FALSE );
if( !NT_SUCCESS(Status) )
@@ -292,7 +292,7 @@
lpErrno);
}
- Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
+ Status = NtCreateEvent( &SockEvent, EVENT_ALL_ACCESS,
NULL, 1, FALSE );
if( !NT_SUCCESS(Status) )
@@ -442,7 +442,7 @@
return SOCKET_ERROR;
}
- Status = NtCreateEvent( &SockEvent, GENERIC_READ | GENERIC_WRITE,
+ Status = NtCreateEvent( &SockEvent, EVENT_ALL_ACCESS,
NULL, 1, FALSE );
if( !NT_SUCCESS(Status) )
@@ -616,7 +616,7 @@
}
Status = NtCreateEvent(&SockEvent,
- GENERIC_READ | GENERIC_WRITE,
+ EVENT_ALL_ACCESS,
NULL, 1, FALSE);
if (!NT_SUCCESS(Status))