Mercurial > mplayer.hg
comparison loader/win32.c @ 295:c017b21a1990
added expRegEnumValueA(), fixed expWaitForSingleObject()
author | arpi_esp |
---|---|
date | Fri, 06 Apr 2001 16:29:55 +0000 |
parents | 6f96d4143806 |
children | 1f7c824033fb |
comparison
equal
deleted
inserted
replaced
294:701aad6a43ee | 295:c017b21a1990 |
---|---|
582 } | 582 } |
583 | 583 |
584 void* WINAPI expWaitForSingleObject(void* object, int duration) | 584 void* WINAPI expWaitForSingleObject(void* object, int duration) |
585 { | 585 { |
586 mutex_list *ml = (mutex_list *)object; | 586 mutex_list *ml = (mutex_list *)object; |
587 int ret; | 587 int ret=0x12345678; // fixed by Zdenek Kabelac |
588 mutex_list* pp=mlist; | 588 mutex_list* pp=mlist; |
589 // dbgprintf("WaitForSingleObject(0x%x, duration %d) =>\n",object, duration); | 589 // dbgprintf("WaitForSingleObject(0x%x, duration %d) =>\n",object, duration); |
590 do { | 590 do { |
591 if (pp == NULL) dbgprintf("WaitForSingleObject: NotFound\n"); | 591 if (pp == NULL) dbgprintf("WaitForSingleObject: NotFound\n"); |
592 if((pp->pm, mlist->pm)==0) | 592 if((pp->pm, mlist->pm)==0) |
2336 if(lpSystemAffinityMask)*lpSystemAffinityMask=1; | 2336 if(lpSystemAffinityMask)*lpSystemAffinityMask=1; |
2337 return 1; | 2337 return 1; |
2338 } | 2338 } |
2339 | 2339 |
2340 | 2340 |
2341 | 2341 /****************************************************************************** |
2342 | 2342 * RegEnumValueA [ADVAPI32.@] |
2343 | 2343 */ |
2344 | 2344 DWORD WINAPI expRegEnumValueA( HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, |
2345 | 2345 LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count ) |
2346 { | |
2347 | |
2348 printf("RegEnumValueA(%x,%ld,%p,%p,%p,%p,%p,%p)\n", | |
2349 hkey, index, value, val_count, reserved, type, data, count ); | |
2350 | |
2351 return -1; | |
2352 } | |
2353 | |
2346 | 2354 |
2347 | 2355 |
2348 | 2356 |
2349 | 2357 |
2350 | 2358 |
2513 FF(RegOpenKeyExA, -1) | 2521 FF(RegOpenKeyExA, -1) |
2514 FF(RegCreateKeyExA, -1) | 2522 FF(RegCreateKeyExA, -1) |
2515 FF(RegQueryValueExA, -1) | 2523 FF(RegQueryValueExA, -1) |
2516 FF(RegSetValueExA, -1) | 2524 FF(RegSetValueExA, -1) |
2517 FF(RegCloseKey, -1) | 2525 FF(RegCloseKey, -1) |
2526 //FF(RegEnumValueA, -1) | |
2518 }; | 2527 }; |
2519 struct exports exp_gdi32[]={ | 2528 struct exports exp_gdi32[]={ |
2520 FF(CreateCompatibleDC, -1) | 2529 FF(CreateCompatibleDC, -1) |
2521 FF(GetDeviceCaps, -1) | 2530 FF(GetDeviceCaps, -1) |
2522 FF(DeleteDC, -1) | 2531 FF(DeleteDC, -1) |