diff options
Diffstat (limited to 'src/pal/tests/palsuite/threading/CreateEventA/test2/test2.c')
-rw-r--r-- | src/pal/tests/palsuite/threading/CreateEventA/test2/test2.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/pal/tests/palsuite/threading/CreateEventA/test2/test2.c b/src/pal/tests/palsuite/threading/CreateEventA/test2/test2.c index 1079459b8a..d7c888234d 100644 --- a/src/pal/tests/palsuite/threading/CreateEventA/test2/test2.c +++ b/src/pal/tests/palsuite/threading/CreateEventA/test2/test2.c @@ -24,14 +24,13 @@ BOOL CreateEventTest() LPSECURITY_ATTRIBUTES lpEventAttributes = 0; BOOL bManualReset = TRUE; BOOL bInitialState = FALSE; - LPCTSTR lpName = "Event #2"; /* Create an event with the Initial State set to FALSE */ HANDLE hEvent = CreateEvent( lpEventAttributes, bManualReset, bInitialState, - lpName); + NULL); if (hEvent != NULL) { @@ -43,8 +42,7 @@ BOOL CreateEventTest() if (dwRet != WAIT_TIMEOUT) { - Trace("CloseEventTest:WaitForSingleObject %s " - "failed (%x)\n",lpName,GetLastError()); + Trace("CloseEventTest:WaitForSingleObject failed (%x)\n", GetLastError()); } else { @@ -57,15 +55,13 @@ BOOL CreateEventTest() if (!bRet) { - Trace("CloseEventTest:CloseHandle %s failed " - " (%x)\n",lpName,GetLastError()); + Trace("CloseEventTest:CloseHandle failed (%x)\n", GetLastError()); } } } else { - Trace("CloseEventTest:CreateEvent %s " - "failed (%x)\n",lpName,GetLastError()); + Trace("CloseEventTest:CreateEvent failed (%x)\n", GetLastError()); } return bRet; |