Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0a5efa39
Commit
0a5efa39
authored
Jan 05, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/modules.c,cpu.c, modules/access/file.c: WinCE fixes.
parent
14410c47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
modules/access/file.c
modules/access/file.c
+3
-1
src/misc/cpu.c
src/misc/cpu.c
+1
-1
src/misc/modules.c
src/misc/modules.c
+6
-11
No files found.
modules/access/file.c
View file @
0a5efa39
...
@@ -185,7 +185,9 @@ static int Open( vlc_object_t *p_this )
...
@@ -185,7 +185,9 @@ static int Open( vlc_object_t *p_this )
p_sys
->
file
=
NULL
;
p_sys
->
file
=
NULL
;
p_sys
->
i_file
=
0
;
p_sys
->
i_file
=
0
;
p_sys
->
i_index
=
0
;
p_sys
->
i_index
=
0
;
#ifndef UNDER_CE
p_sys
->
fd
=
-
1
;
p_sys
->
fd
=
-
1
;
#endif
if
(
!
strcasecmp
(
p_access
->
psz_access
,
"stream"
)
)
if
(
!
strcasecmp
(
p_access
->
psz_access
,
"stream"
)
)
{
{
...
@@ -577,7 +579,7 @@ static int _OpenFile( access_t * p_access, char * psz_name )
...
@@ -577,7 +579,7 @@ static int _OpenFile( access_t * p_access, char * psz_name )
p_sys
->
fd
=
fopen
(
psz_name
,
"rb"
);
p_sys
->
fd
=
fopen
(
psz_name
,
"rb"
);
if
(
!
p_sys
->
fd
)
if
(
!
p_sys
->
fd
)
{
{
msg_Err
(
p_access
,
"cannot open file %s"
);
msg_Err
(
p_access
,
"cannot open file %s"
,
psz_name
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
src/misc/cpu.c
View file @
0a5efa39
...
@@ -283,7 +283,7 @@ uint32_t CPUCapabilities( void )
...
@@ -283,7 +283,7 @@ uint32_t CPUCapabilities( void )
i_capabilities
|=
CPU_CAPABILITY_FPU
;
i_capabilities
|=
CPU_CAPABILITY_FPU
;
return
i_capabilities
;
return
i_capabilities
;
#elif defined( _MSC_VER )
#elif defined( _MSC_VER )
&& !defined( UNDER_CE )
i_capabilities
|=
CPU_CAPABILITY_FPU
;
i_capabilities
|=
CPU_CAPABILITY_FPU
;
return
i_capabilities
;
return
i_capabilities
;
...
...
src/misc/modules.c
View file @
0a5efa39
...
@@ -1544,23 +1544,19 @@ static void * _module_getsymbol( module_handle_t handle,
...
@@ -1544,23 +1544,19 @@ static void * _module_getsymbol( module_handle_t handle,
static
char
*
GetWindowsError
(
void
)
static
char
*
GetWindowsError
(
void
)
{
{
#if defined(UNDER_CE)
#if defined(UNDER_CE)
wchar_t
psz_tmp
[
256
];
wchar_t
psz_tmp
[
MAX_PATH
];
char
*
psz_buffer
=
malloc
(
256
);
char
*
psz_buffer
=
malloc
(
MAX_PATH
);
#else
#else
char
*
psz_tmp
=
malloc
(
256
);
char
*
psz_tmp
=
malloc
(
MAX_PATH
);
#endif
#endif
int
i
=
0
,
i_error
=
GetLastError
();
int
i
=
0
,
i_error
=
GetLastError
();
FormatMessage
(
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
FormatMessage
(
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
i_error
,
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
NULL
,
i_error
,
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_DEFAULT
),
(
LPTSTR
)
psz_tmp
,
256
,
NULL
);
(
LPTSTR
)
psz_tmp
,
MAX_PATH
,
NULL
);
/* Go to the end of the string */
/* Go to the end of the string */
#if defined(UNDER_CE)
while
(
psz_tmp
[
i
]
&&
psz_tmp
[
i
]
!=
_T
(
'\r'
)
&&
psz_tmp
[
i
]
!=
_T
(
'\n'
)
)
while
(
psz_tmp
[
i
]
&&
psz_tmp
[
i
]
!=
L'\r'
&&
psz_tmp
[
i
]
!=
L'\n'
)
#else
while
(
psz_tmp
[
i
]
&&
psz_tmp
[
i
]
!=
'\r'
&&
psz_tmp
[
i
]
!=
'\n'
)
#endif
{
{
i
++
;
i
++
;
}
}
...
@@ -1577,8 +1573,7 @@ static char * GetWindowsError( void )
...
@@ -1577,8 +1573,7 @@ static char * GetWindowsError( void )
}
}
#if defined(UNDER_CE)
#if defined(UNDER_CE)
WideCharToMultiByte
(
CP_ACP
,
WC_DEFAULTCHAR
,
psz_tmp
,
-
1
,
wcstombs
(
psz_buffer
,
psz_tmp
,
MAX_PATH
);
psz_buffer
,
256
,
NULL
,
NULL
);
return
psz_buffer
;
return
psz_buffer
;
#else
#else
return
psz_tmp
;
return
psz_tmp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment