mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 02:57:13 +00:00
Fix ambiguous else warning.
This commit is contained in:
parent
4ab79f9619
commit
a8f8bef098
|
@ -116,16 +116,20 @@ static void MODULE_DoInitializeDLLs( WINE_MODREF *wm,
|
||||||
skip = TRUE;
|
skip = TRUE;
|
||||||
|
|
||||||
if ( type == DLL_PROCESS_ATTACH )
|
if ( type == DLL_PROCESS_ATTACH )
|
||||||
|
{
|
||||||
if ( wm->flags & WINE_MODREF_PROCESS_ATTACHED )
|
if ( wm->flags & WINE_MODREF_PROCESS_ATTACHED )
|
||||||
skip = TRUE;
|
skip = TRUE;
|
||||||
else
|
else
|
||||||
wm->flags |= WINE_MODREF_PROCESS_ATTACHED;
|
wm->flags |= WINE_MODREF_PROCESS_ATTACHED;
|
||||||
|
}
|
||||||
|
|
||||||
if ( type == DLL_PROCESS_DETACH )
|
if ( type == DLL_PROCESS_DETACH )
|
||||||
|
{
|
||||||
if ( wm->flags & WINE_MODREF_PROCESS_DETACHED )
|
if ( wm->flags & WINE_MODREF_PROCESS_DETACHED )
|
||||||
skip = TRUE;
|
skip = TRUE;
|
||||||
else
|
else
|
||||||
wm->flags |= WINE_MODREF_PROCESS_DETACHED;
|
wm->flags |= WINE_MODREF_PROCESS_DETACHED;
|
||||||
|
}
|
||||||
|
|
||||||
if ( !skip )
|
if ( !skip )
|
||||||
{
|
{
|
||||||
|
|
|
@ -202,10 +202,12 @@ void PROCESS_CallUserSignalProc( UINT uCode, DWORD dwThreadOrProcessId, HMODULE
|
||||||
/* Get thread or process ID */
|
/* Get thread or process ID */
|
||||||
|
|
||||||
if ( dwThreadOrProcessId == 0 )
|
if ( dwThreadOrProcessId == 0 )
|
||||||
|
{
|
||||||
if ( uCode == USIG_THREAD_INIT || uCode == USIG_THREAD_EXIT )
|
if ( uCode == USIG_THREAD_INIT || uCode == USIG_THREAD_EXIT )
|
||||||
dwThreadOrProcessId = GetCurrentThreadId();
|
dwThreadOrProcessId = GetCurrentThreadId();
|
||||||
else
|
else
|
||||||
dwThreadOrProcessId = GetCurrentProcessId();
|
dwThreadOrProcessId = GetCurrentProcessId();
|
||||||
|
}
|
||||||
|
|
||||||
/* Convert module handle to 16-bit */
|
/* Convert module handle to 16-bit */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue