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
6446c626
Commit
6446c626
authored
Oct 15, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32 debug: reindent
parent
4706adfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/misc/messages.c
src/misc/messages.c
+3
-3
No files found.
src/misc/messages.c
View file @
6446c626
...
@@ -178,7 +178,7 @@ static void Win32DebugOutputMsg (void* d, int type, const vlc_log_t *p_item,
...
@@ -178,7 +178,7 @@ static void Win32DebugOutputMsg (void* d, int type, const vlc_log_t *p_item,
int
msg_len
=
vsnprintf
(
NULL
,
0
,
format
,
dol2
);
int
msg_len
=
vsnprintf
(
NULL
,
0
,
format
,
dol2
);
va_end
(
dol2
);
va_end
(
dol2
);
if
(
msg_len
<=
0
)
if
(
msg_len
<=
0
)
return
;
return
;
char
*
msg
=
malloc
(
msg_len
+
1
+
1
);
char
*
msg
=
malloc
(
msg_len
+
1
+
1
);
...
@@ -187,12 +187,12 @@ static void Win32DebugOutputMsg (void* d, int type, const vlc_log_t *p_item,
...
@@ -187,12 +187,12 @@ static void Win32DebugOutputMsg (void* d, int type, const vlc_log_t *p_item,
msg_len
=
vsnprintf
(
msg
,
msg_len
+
1
,
format
,
dol
);
msg_len
=
vsnprintf
(
msg
,
msg_len
+
1
,
format
,
dol
);
if
(
msg_len
>
0
){
if
(
msg_len
>
0
){
if
(
msg
[
msg_len
-
1
]
!=
'\n'
)
{
if
(
msg
[
msg_len
-
1
]
!=
'\n'
)
{
msg
[
msg_len
]
=
'\n'
;
msg
[
msg_len
]
=
'\n'
;
msg
[
msg_len
+
1
]
=
'\0'
;
msg
[
msg_len
+
1
]
=
'\0'
;
}
}
char
*
psz_msg
=
NULL
;
char
*
psz_msg
=
NULL
;
if
(
asprintf
(
&
psz_msg
,
"%s %s%s: %s"
,
p_item
->
psz_module
,
if
(
asprintf
(
&
psz_msg
,
"%s %s%s: %s"
,
p_item
->
psz_module
,
p_item
->
psz_object_type
,
msg_type
[
type
],
msg
)
>
0
)
{
p_item
->
psz_object_type
,
msg_type
[
type
],
msg
)
>
0
)
{
wchar_t
*
wmsg
=
ToWide
(
psz_msg
);
wchar_t
*
wmsg
=
ToWide
(
psz_msg
);
OutputDebugStringW
(
wmsg
);
OutputDebugStringW
(
wmsg
);
...
...
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