13 Mar
2024
13 Mar
'24
9:56 a.m.
Zhiyi Zhang (@zhiyi) commented about programs/explorer/desktop.c:
} }
+static BOOL wait_named_mutex( const WCHAR *name ) +{ + HANDLE mutex; + + mutex = CreateMutexW( NULL, TRUE, name ); + if (GetLastError() == ERROR_ALREADY_EXISTS) + { + TRACE( "waiting for mutex %s\n", debugstr_w( name )); + WaitForSingleObject( mutex, INFINITE ); + } + return TRUE;
This function only returns TRUE so there is no point returning a value. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5060#note_64541