Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4a0f9998
Commit
4a0f9998
authored
Jan 07, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jan 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CreateEventW in preference to CreateEventA for unnamed events.
parent
1e0aaaf2
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
32 additions
and
32 deletions
+32
-32
registry.c
dlls/advapi32/registry.c
+1
-1
user.c
dlls/ddraw/dsurface/user.c
+2
-2
dplay.c
dlls/dplayx/dplay.c
+2
-2
dplayx_messages.c
dlls/dplayx/dplayx_messages.c
+1
-1
dplobby.c
dlls/dplayx/dplobby.c
+3
-3
comm.c
dlls/kernel/comm.c
+1
-1
sync.c
dlls/kernel/sync.c
+3
-3
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+4
-4
rpc_server.c
dlls/rpcrt4/rpc_server.c
+2
-2
thread.c
dlls/shlwapi/thread.c
+1
-1
comm16.c
dlls/user/comm16.c
+1
-1
dosvm.c
dlls/winedos/dosvm.c
+1
-1
module.c
dlls/winedos/module.c
+1
-1
internet.c
dlls/wininet/internet.c
+2
-2
mciavi.c
dlls/winmm/mciavi/mciavi.c
+1
-1
mmoutput.c
dlls/winmm/mciavi/mmoutput.c
+1
-1
mciwave.c
dlls/winmm/mciwave/mciwave.c
+2
-2
socket.c
dlls/winsock/socket.c
+1
-1
sock.c
dlls/winsock/tests/sock.c
+2
-2
No files found.
dlls/advapi32/registry.c
View file @
4a0f9998
...
...
@@ -2073,7 +2073,7 @@ LONG WINAPI RegNotifyChangeKeyValue( HKEY hkey, BOOL fWatchSubTree,
hEvent
,
fAsync
);
if
(
!
fAsync
)
hEvent
=
CreateEvent
A
(
NULL
,
0
,
0
,
NULL
);
hEvent
=
CreateEvent
W
(
NULL
,
0
,
0
,
NULL
);
SERVER_START_REQ
(
set_registry_notification
)
{
...
...
dlls/ddraw/dsurface/user.c
View file @
4a0f9998
...
...
@@ -96,8 +96,8 @@ User_DirectDrawSurface_Construct(IDirectDrawSurfaceImpl* This,
#endif
#ifndef SYNC_UPDATE
InitializeCriticalSection
(
&
priv
->
user
.
crit
);
priv
->
user
.
refresh_event
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
priv
->
user
.
update_event
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
priv
->
user
.
refresh_event
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
priv
->
user
.
update_event
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
priv
->
user
.
update_thread
=
CreateThread
(
NULL
,
0
,
User_update_thread
,
This
,
0
,
NULL
);
#ifdef OWN_WINDOW
if
(
This
->
ddraw_owner
->
cooperative_level
&
DDSCL_FULLSCREEN
)
{
...
...
dlls/dplayx/dplay.c
View file @
4a0f9998
...
...
@@ -2309,7 +2309,7 @@ static HRESULT WINAPI DP_IF_EnumSessions
lpData
->
dwTimeout
=
dwTimeout
;
This
->
dp2
->
hKillEnumSessionThreadEvent
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
DuplicateHandle
(
GetCurrentProcess
(),
This
->
dp2
->
hKillEnumSessionThreadEvent
,
...
...
@@ -4582,7 +4582,7 @@ static HRESULT WINAPI DP_SendEx
{
DWORD dwWaitReturn;
This->dp2->hReplyEvent = CreateEvent
A
( NULL, FALSE, FALSE, NULL );
This->dp2->hReplyEvent = CreateEvent
W
( NULL, FALSE, FALSE, NULL );
dwWaitReturn = WaitForSingleObject( hReplyEvent, dwTimeout );
if( dwWaitReturn != WAIT_OBJECT_0 )
...
...
dlls/dplayx/dplayx_messages.c
View file @
4a0f9998
...
...
@@ -166,7 +166,7 @@ static
HANDLE
DP_MSG_BuildAndLinkReplyStruct
(
IDirectPlay2Impl
*
This
,
LPDP_MSG_REPLY_STRUCT_LIST
lpReplyStructList
,
WORD
wReplyCommandId
)
{
lpReplyStructList
->
replyExpected
.
hReceipt
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
lpReplyStructList
->
replyExpected
.
hReceipt
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
lpReplyStructList
->
replyExpected
.
wExpectedReply
=
wReplyCommandId
;
lpReplyStructList
->
replyExpected
.
lpReplyMsg
=
NULL
;
lpReplyStructList
->
replyExpected
.
dwMsgBodySize
=
0
;
...
...
dlls/dplayx/dplobby.c
View file @
4a0f9998
...
...
@@ -1164,13 +1164,13 @@ BOOL DPL_CreateAndSetLobbyHandles( DWORD dwDestProcessId, HANDLE hDestProcess,
s_attrib
.
bInheritHandle
=
TRUE
;
/* FIXME: Is there a handle leak here? */
hTemp
=
CreateEvent
A
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
hTemp
=
CreateEvent
W
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphStart
=
ConvertToGlobalHandle
(
hTemp
);
hTemp
=
CreateEvent
A
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
hTemp
=
CreateEvent
W
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphDeath
=
ConvertToGlobalHandle
(
hTemp
);
hTemp
=
CreateEvent
A
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
hTemp
=
CreateEvent
W
(
&
s_attrib
,
TRUE
,
FALSE
,
NULL
);
*
lphRead
=
ConvertToGlobalHandle
(
hTemp
);
if
(
(
!
DuplicateHandle
(
GetCurrentProcess
(),
*
lphStart
,
...
...
dlls/kernel/comm.c
View file @
4a0f9998
...
...
@@ -2025,7 +2025,7 @@ BOOL WINAPI WaitCommEvent(
return
COMM_WaitCommEvent
(
hFile
,
lpdwEvents
,
lpOverlapped
);
/* if there is no overlapped structure, create our own */
ov
.
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ov
.
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
COMM_WaitCommEvent
(
hFile
,
lpdwEvents
,
&
ov
);
...
...
dlls/kernel/sync.c
View file @
4a0f9998
...
...
@@ -440,7 +440,7 @@ HANDLE WINAPI CreateEventW( SECURITY_ATTRIBUTES *sa, BOOL manual_reset,
*/
HANDLE
WINAPI
WIN16_CreateEvent
(
BOOL
manual_reset
,
BOOL
initial_state
)
{
return
CreateEvent
A
(
NULL
,
manual_reset
,
initial_state
,
NULL
);
return
CreateEvent
W
(
NULL
,
manual_reset
,
initial_state
,
NULL
);
}
...
...
@@ -548,7 +548,7 @@ BOOL WINAPI ResetEvent( HANDLE handle )
*/
HANDLE
WINAPI
VWin32_EventCreate
(
VOID
)
{
HANDLE
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
0
,
NULL
);
HANDLE
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
0
,
NULL
);
return
ConvertToGlobalHandle
(
hEvent
);
}
...
...
@@ -1301,7 +1301,7 @@ BOOL WINAPI ConnectNamedPipe(HANDLE hPipe, LPOVERLAPPED overlapped)
}
memset
(
&
ov
,
0
,
sizeof
(
ov
));
ov
.
hEvent
=
CreateEvent
A
(
NULL
,
0
,
0
,
NULL
);
ov
.
hEvent
=
CreateEvent
W
(
NULL
,
0
,
0
,
NULL
);
if
(
!
ov
.
hEvent
)
return
FALSE
;
...
...
dlls/rpcrt4/rpc_binding.c
View file @
4a0f9998
...
...
@@ -147,7 +147,7 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
RPC_MAX_PACKET_SIZE
,
RPC_MAX_PACKET_SIZE
,
5000
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
pname
);
memset
(
&
Connection
->
ovl
,
0
,
sizeof
(
Connection
->
ovl
));
Connection
->
ovl
.
hEvent
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
Connection
->
ovl
.
hEvent
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
ConnectNamedPipe
(
Connection
->
conn
,
&
Connection
->
ovl
))
{
WARN
(
"Couldn't ConnectNamedPipe (error was %ld)
\n
"
,
GetLastError
());
if
(
GetLastError
()
==
ERROR_PIPE_CONNECTED
)
{
...
...
@@ -171,7 +171,7 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
RPC_MAX_PACKET_SIZE
,
RPC_MAX_PACKET_SIZE
,
5000
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
pname
);
memset
(
&
Connection
->
ovl
,
0
,
sizeof
(
Connection
->
ovl
));
Connection
->
ovl
.
hEvent
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
Connection
->
ovl
.
hEvent
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
ConnectNamedPipe
(
Connection
->
conn
,
&
Connection
->
ovl
))
{
WARN
(
"Couldn't ConnectNamedPipe (error was %ld)
\n
"
,
GetLastError
());
if
(
GetLastError
()
==
ERROR_PIPE_CONNECTED
)
{
...
...
@@ -223,7 +223,7 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
/* pipe is connected; change to message-read mode. */
dwMode
=
PIPE_READMODE_MESSAGE
;
SetNamedPipeHandleState
(
conn
,
&
dwMode
,
NULL
,
NULL
);
Connection
->
ovl
.
hEvent
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
Connection
->
ovl
.
hEvent
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
Connection
->
conn
=
conn
;
}
/* protseq=ncacn_np: named pipes */
...
...
@@ -257,7 +257,7 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
/* pipe is connected; change to message-read mode. */
dwMode
=
PIPE_READMODE_MESSAGE
;
SetNamedPipeHandleState
(
conn
,
&
dwMode
,
NULL
,
NULL
);
Connection
->
ovl
.
hEvent
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
Connection
->
ovl
.
hEvent
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
Connection
->
conn
=
conn
;
}
else
{
ERR
(
"protseq %s not supported
\n
"
,
Connection
->
Protseq
);
...
...
dlls/rpcrt4/rpc_server.c
View file @
4a0f9998
...
...
@@ -542,8 +542,8 @@ static void RPCRT4_start_listen(void)
EnterCriticalSection
(
&
listen_cs
);
if
(
!
++
listen_count
)
{
if
(
!
mgr_event
)
mgr_event
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
server_sem
)
server_sem
=
CreateSemaphore
A
(
NULL
,
0
,
MAX_THREADS
,
NULL
);
if
(
!
mgr_event
)
mgr_event
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
server_sem
)
server_sem
=
CreateSemaphore
W
(
NULL
,
0
,
MAX_THREADS
,
NULL
);
if
(
!
worker_tls
)
worker_tls
=
TlsAlloc
();
std_listen
=
TRUE
;
server_thread
=
CreateThread
(
NULL
,
0
,
RPCRT4_server_thread
,
NULL
,
0
,
NULL
);
...
...
dlls/shlwapi/thread.c
View file @
4a0f9998
...
...
@@ -288,7 +288,7 @@ BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE pfnThreadProc, VOID *pData,
ti
.
pfnCallback
=
pfnCallback
;
ti
.
pData
=
pData
;
ti
.
bInitCom
=
dwFlags
&
CTF_COINIT
?
TRUE
:
FALSE
;
ti
.
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ti
.
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
/* Hold references to the current thread and IE process, if desired */
if
(
dwFlags
&
CTF_THREAD_REF
)
...
...
dlls/user/comm16.c
View file @
4a0f9998
...
...
@@ -249,7 +249,7 @@ static INT COMM16_WriteFile(HANDLE hComm, LPCVOID buffer, DWORD len)
DWORD
count
=
-
1
;
ZeroMemory
(
&
ov
,
sizeof
(
ov
));
ov
.
hEvent
=
CreateEvent
A
(
NULL
,
0
,
0
,
NULL
);
ov
.
hEvent
=
CreateEvent
W
(
NULL
,
0
,
0
,
NULL
);
if
(
ov
.
hEvent
==
INVALID_HANDLE_VALUE
)
return
-
1
;
...
...
dlls/winedos/dosvm.c
View file @
4a0f9998
...
...
@@ -725,7 +725,7 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
DisableThreadLibraryCalls
(
hinstDLL
);
DOSVM_InitSegments
();
event_notifier
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_notifier
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
if
(
!
event_notifier
)
ERR
(
"Failed to create event object!
\n
"
);
}
...
...
dlls/winedos/module.c
View file @
4a0f9998
...
...
@@ -590,7 +590,7 @@ void WINAPI MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg )
spc
.
proc
=
proc
;
spc
.
arg
=
arg
;
event
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
event
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
PostThreadMessageA
(
loop_tid
,
WM_USER
,
(
WPARAM
)
event
,
(
LPARAM
)
&
spc
);
WaitForSingleObject
(
event
,
INFINITE
);
CloseHandle
(
event
);
...
...
dlls/wininet/internet.c
View file @
4a0f9998
...
...
@@ -273,8 +273,8 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
if
(
g_dwTlsErrIndex
==
TLS_OUT_OF_INDEXES
)
return
FALSE
;
hQuitEvent
=
CreateEvent
A
(
0
,
TRUE
,
FALSE
,
NULL
);
hWorkEvent
=
CreateEvent
A
(
0
,
FALSE
,
FALSE
,
NULL
);
hQuitEvent
=
CreateEvent
W
(
0
,
TRUE
,
FALSE
,
NULL
);
hWorkEvent
=
CreateEvent
W
(
0
,
FALSE
,
FALSE
,
NULL
);
InitializeCriticalSection
(
&
csQueue
);
URLCacheContainers_CreateDefaults
();
...
...
dlls/winmm/mciavi/mciavi.c
View file @
4a0f9998
...
...
@@ -152,7 +152,7 @@ static DWORD MCIAVI_drvOpen(LPSTR str, LPMCI_OPEN_DRIVER_PARMSA modp)
return
0
;
InitializeCriticalSection
(
&
wma
->
cs
);
wma
->
hStopEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wma
->
hStopEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wma
->
wDevID
=
modp
->
wDeviceID
;
wma
->
wCommandTable
=
mciLoadCommandResource
(
MCIAVI_hInstance
,
mciAviWStr
,
0
);
modp
->
wCustomCommandTable
=
wma
->
wCommandTable
;
...
...
dlls/winmm/mciavi/mmoutput.c
View file @
4a0f9998
...
...
@@ -561,7 +561,7 @@ DWORD MCIAVI_OpenAudio(WINE_MCIAVI* wma, unsigned* nHdr, LPWAVEHDR* pWaveHdr)
}
wma
->
dwCurrAudioBlock
=
0
;
wma
->
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wma
->
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wma
->
dwEventCount
=
*
nHdr
-
1
;
*
pWaveHdr
=
waveHdr
;
cleanUp:
...
...
dlls/winmm/mciwave/mciwave.c
View file @
4a0f9998
...
...
@@ -809,7 +809,7 @@ static DWORD WAVE_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
whidx
=
0
;
left
=
min
(
wmw
->
ckWaveData
.
cksize
,
end
-
wmw
->
dwPosition
);
wmw
->
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wmw
->
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wmw
->
dwEventCount
=
1L
;
/* for first buffer */
TRACE
(
"Playing (normalized) from byte=%lu for %lu bytes
\n
"
,
wmw
->
dwPosition
,
left
);
...
...
@@ -1048,7 +1048,7 @@ static DWORD WAVE_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar
goto
cleanUp
;
}
wmw
->
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wmw
->
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wmw
->
dwEventCount
=
1L
;
/* for first buffer */
TRACE
(
"Recording (normalized) from byte=%lu for %lu bytes
\n
"
,
wmw
->
dwPosition
,
end
-
wmw
->
dwPosition
);
...
...
dlls/winsock/socket.c
View file @
4a0f9998
...
...
@@ -2997,7 +2997,7 @@ WSAEVENT WINAPI WSACreateEvent(void)
/* Create a manual-reset event, with initial state: unsignaled */
TRACE
(
"
\n
"
);
return
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
return
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
}
/***********************************************************************
...
...
dlls/winsock/tests/sock.c
View file @
4a0f9998
...
...
@@ -599,9 +599,9 @@ static void do_test( test_setup *test )
DWORD
i
,
n
=
min
(
test
->
general
.
n_clients
,
MAX_CLIENTS
);
DWORD
wait
;
server_ready
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
server_ready
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
for
(
i
=
0
;
i
<=
n
;
i
++
)
client_ready
[
i
]
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
client_ready
[
i
]
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
StartServer
(
test
->
srv
,
&
test
->
general
,
&
test
->
srv_params
);
StartClients
(
test
->
clt
,
&
test
->
general
,
&
test
->
clt_params
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment