Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- undefined4 __cdecl acquire_tasksche_mutex(int number_of_tries)
- {
- HANDLE hObject;
- int iVar1;
- char local_68 [100];
- sprintf(local_68,s_%s%d_0040f4ac,s_Global\MsWinZonesCacheCounterMut_0040f4b4,0);
- iVar1 = 0;
- if (0 < number_of_tries) {
- do {
- hObject = OpenMutexA(0x100000,1,local_68);
- /* If Mutex Acquisition Is Successful Then Return 1 */
- if (hObject != (HANDLE)0x0) {
- CloseHandle(hObject);
- return 1;
- }
- /* Sleep And Try Again */
- Sleep(1000);
- iVar1 = iVar1 + 1;
- } while (iVar1 < number_of_tries);
- }
- /* If Mutex Couldn't Be Acquired Then Return 0 */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement