Merge pull request #2764 from akallabeth/pull_fixes

Pull fixes
This commit is contained in:
MartinHaimberger 2015-07-03 13:04:37 +02:00
commit 358289fb51
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include <winpr/crt.h> #include <winpr/crt.h>
#include <winpr/synch.h> #include <winpr/synch.h>
#include <winpr/string.h>
#include <winpr/path.h> #include <winpr/path.h>
#include <winpr/winsock.h> #include <winpr/winsock.h>

View File

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