Changeset 0a5efa39e8f52fe8ac98bc74373e9ea625729225
- Timestamp:
- 05/01/05 23:45:36
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1104965136 +0000
- git-parent:
[14410c4779cfb0da21e7a7a6b1ec2a3ad14884c2]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1104965136 +0000
- Message:
* src/misc/modules.c,cpu.c, modules/access/file.c: WinCE fixes.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd5eacbe |
r0a5efa3 |
|
| 186 | 186 | p_sys->i_file = 0; |
|---|
| 187 | 187 | p_sys->i_index = 0; |
|---|
| | 188 | #ifndef UNDER_CE |
|---|
| 188 | 189 | p_sys->fd = -1; |
|---|
| | 190 | #endif |
|---|
| 189 | 191 | |
|---|
| 190 | 192 | if( !strcasecmp( p_access->psz_access, "stream" ) ) |
|---|
| … | … | |
| 578 | 580 | if ( !p_sys->fd ) |
|---|
| 579 | 581 | { |
|---|
| 580 | | msg_Err( p_access, "cannot open file %s" ); |
|---|
| | 582 | msg_Err( p_access, "cannot open file %s", psz_name ); |
|---|
| 581 | 583 | return VLC_EGENERIC; |
|---|
| 582 | 584 | } |
|---|
| rae7ce94 |
r0a5efa3 |
|
| 284 | 284 | return i_capabilities; |
|---|
| 285 | 285 | |
|---|
| 286 | | #elif defined( _MSC_VER ) |
|---|
| | 286 | #elif defined( _MSC_VER ) && !defined( UNDER_CE ) |
|---|
| 287 | 287 | i_capabilities |= CPU_CAPABILITY_FPU; |
|---|
| 288 | 288 | return i_capabilities; |
|---|
| r43e9431 |
r0a5efa3 |
|
| 1545 | 1545 | { |
|---|
| 1546 | 1546 | #if defined(UNDER_CE) |
|---|
| 1547 | | wchar_t psz_tmp[256]; |
|---|
| 1548 | | char * psz_buffer = malloc( 256 ); |
|---|
| | 1547 | wchar_t psz_tmp[MAX_PATH]; |
|---|
| | 1548 | char * psz_buffer = malloc( MAX_PATH ); |
|---|
| 1549 | 1549 | #else |
|---|
| 1550 | | char * psz_tmp = malloc( 256 ); |
|---|
| | 1550 | char * psz_tmp = malloc( MAX_PATH ); |
|---|
| 1551 | 1551 | #endif |
|---|
| 1552 | 1552 | int i = 0, i_error = GetLastError(); |
|---|
| … | … | |
| 1554 | 1554 | FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, |
|---|
| 1555 | 1555 | NULL, i_error, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), |
|---|
| 1556 | | (LPTSTR) psz_tmp, 256, NULL ); |
|---|
| | 1556 | (LPTSTR)psz_tmp, MAX_PATH, NULL ); |
|---|
| 1557 | 1557 | |
|---|
| 1558 | 1558 | /* Go to the end of the string */ |
|---|
| 1559 | | #if defined(UNDER_CE) |
|---|
| 1560 | | while( psz_tmp[i] && psz_tmp[i] != L'\r' && psz_tmp[i] != L'\n' ) |
|---|
| 1561 | | #else |
|---|
| 1562 | | while( psz_tmp[i] && psz_tmp[i] != '\r' && psz_tmp[i] != '\n' ) |
|---|
| 1563 | | #endif |
|---|
| | 1559 | while( psz_tmp[i] && psz_tmp[i] != _T('\r') && psz_tmp[i] != _T('\n') ) |
|---|
| 1564 | 1560 | { |
|---|
| 1565 | 1561 | i++; |
|---|
| … | … | |
| 1578 | 1574 | |
|---|
| 1579 | 1575 | #if defined(UNDER_CE) |
|---|
| 1580 | | WideCharToMultiByte( CP_ACP, WC_DEFAULTCHAR, psz_tmp, -1, |
|---|
| 1581 | | psz_buffer, 256, NULL, NULL ); |
|---|
| | 1576 | wcstombs( psz_buffer, psz_tmp, MAX_PATH ); |
|---|
| 1582 | 1577 | return psz_buffer; |
|---|
| 1583 | 1578 | #else |
|---|