Mercurial > mplayer.hg
comparison loader/win32.c @ 13182:25cb0d6432d4
loader gcc warning fixes and avifile sync
author | rathann |
---|---|
date | Sat, 28 Aug 2004 20:22:38 +0000 |
parents | 5af0b22d55a6 |
children | 82c0bbefcbd4 |
comparison
equal
deleted
inserted
replaced
13181:12176045ccf9 | 13182:25cb0d6432d4 |
---|---|
861 dbgprintf("WaitForMultipleObjects(%d, 0x%x, %d, duration %d) =>\n", | 861 dbgprintf("WaitForMultipleObjects(%d, 0x%x, %d, duration %d) =>\n", |
862 count, objects, WaitAll, duration); | 862 count, objects, WaitAll, duration); |
863 | 863 |
864 for (i = 0; i < count; i++) | 864 for (i = 0; i < count; i++) |
865 { | 865 { |
866 object = objects[i]; | 866 object = (void *)objects[i]; |
867 ret = expWaitForSingleObject(object, duration); | 867 ret = expWaitForSingleObject(object, duration); |
868 if (WaitAll) | 868 if (WaitAll) |
869 dbgprintf("WaitAll flag not yet supported...\n"); | 869 dbgprintf("WaitAll flag not yet supported...\n"); |
870 else | 870 else |
871 return ret; | 871 return ret; |
1941 static DWORD WINAPI expRegQueryInfoKeyA( HKEY hkey, LPSTR class, LPDWORD class_len, LPDWORD reserved, | 1941 static DWORD WINAPI expRegQueryInfoKeyA( HKEY hkey, LPSTR class, LPDWORD class_len, LPDWORD reserved, |
1942 LPDWORD subkeys, LPDWORD max_subkey, LPDWORD max_class, | 1942 LPDWORD subkeys, LPDWORD max_subkey, LPDWORD max_class, |
1943 LPDWORD values, LPDWORD max_value, LPDWORD max_data, | 1943 LPDWORD values, LPDWORD max_value, LPDWORD max_data, |
1944 LPDWORD security, FILETIME *modif ) | 1944 LPDWORD security, FILETIME *modif ) |
1945 { | 1945 { |
1946 return; | 1946 return ERROR_SUCCESS; |
1947 } | 1947 } |
1948 | 1948 |
1949 /* | 1949 /* |
1950 * return CPU clock (in kHz), using linux's /proc filesystem (/proc/cpuinfo) | 1950 * return CPU clock (in kHz), using linux's /proc filesystem (/proc/cpuinfo) |
1951 */ | 1951 */ |
3643 #endif | 3643 #endif |
3644 #else | 3644 #else |
3645 if (strrchr(lpFileName, '\\')) | 3645 if (strrchr(lpFileName, '\\')) |
3646 lpFilePart = strrchr(lpFileName, '\\'); | 3646 lpFilePart = strrchr(lpFileName, '\\'); |
3647 else | 3647 else |
3648 lpFilePart = lpFileName; | 3648 lpFilePart = (LPTSTR)lpFileName; |
3649 #endif | 3649 #endif |
3650 strcpy(lpBuffer, lpFileName); | 3650 strcpy(lpBuffer, lpFileName); |
3651 // strncpy(lpBuffer, lpFileName, rindex(lpFileName, '\\')-lpFileName); | 3651 // strncpy(lpBuffer, lpFileName, rindex(lpFileName, '\\')-lpFileName); |
3652 return strlen(lpBuffer); | 3652 return strlen(lpBuffer); |
3653 } | 3653 } |