Fixed inverted bAttached setting.

If bAttached is TRUE, the resources of the event are not
cleaned up on CloseHandle.
This commit is contained in:
Armin Novak 2015-07-03 12:31:29 +02:00
parent 282f15795d
commit 776f15e135
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ int SetEventFileDescriptor(HANDLE hEvent, int FileDescriptor, ULONG mode)
return -1;
event = (WINPR_EVENT*) Object;
event->bAttached = FALSE;
event->bAttached = TRUE;
event->Mode = mode;
event->pipe_fd[0] = FileDescriptor;
return 0;