Fix WINPR_EVENT and WINPR_TIMER structs.

Both structs must have the same base members so that the event
handle can be extracted at the same offset.
This commit is contained in:
akallabeth 2019-10-01 21:03:03 +02:00
parent a907f003e1
commit a3dae4ad46
1 changed files with 2 additions and 2 deletions

View File

@ -68,11 +68,11 @@ typedef struct winpr_semaphore WINPR_SEMAPHORE;
struct winpr_event
{
WINPR_HANDLE_DEF();
char* name;
int pipe_fd[2];
BOOL bAttached;
BOOL bManualReset;
char* name;
};
typedef struct winpr_event WINPR_EVENT;
@ -97,7 +97,6 @@ struct winpr_timer
BOOL bManualReset;
PTIMERAPCROUTINE pfnCompletionRoutine;
LPVOID lpArgToCompletionRoutine;
char* name;
#ifdef WITH_POSIX_TIMER
timer_t tid;
@ -109,6 +108,7 @@ struct winpr_timer
int pipe[2];
BOOL running;
#endif
char* name;
};
typedef struct winpr_timer WINPR_TIMER;