Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bdceab65
Commit
bdceab65
authored
Dec 26, 1999
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 26, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugstr_w now returns something looking like 'L"xxxx"...'
parent
f3ca8426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
debugstr.c
misc/debugstr.c
+10
-10
No files found.
misc/debugstr.c
View file @
bdceab65
...
...
@@ -35,7 +35,7 @@ debugstr_an (LPCSTR src, int n)
if
(
!
src
)
return
"(null)"
;
if
(
n
<
0
)
n
=
0
;
dst
=
res
=
gimme1
(
n
*
4
+
10
);
dst
=
res
=
gimme1
(
n
*
4
+
6
);
*
dst
++
=
'"'
;
while
(
n
--
>
0
&&
*
src
)
{
...
...
@@ -59,14 +59,14 @@ debugstr_an (LPCSTR src, int n)
}
}
}
*
dst
++
=
'"'
;
if
(
*
src
)
{
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
}
*
dst
++
=
'"'
;
*
dst
=
0
;
*
dst
=
'\0'
;
return
res
;
}
...
...
@@ -87,7 +87,8 @@ debugstr_wn (LPCWSTR src, int n)
if
(
!
src
)
return
"(null)"
;
if
(
n
<
0
)
n
=
0
;
dst
=
res
=
gimme1
(
n
*
4
+
10
);
dst
=
res
=
gimme1
(
n
*
5
+
7
);
*
dst
++
=
'L'
;
*
dst
++
=
'"'
;
while
(
n
--
>
0
&&
*
src
)
{
...
...
@@ -102,23 +103,22 @@ debugstr_wn (LPCWSTR src, int n)
default:
if
(
c
>=
' '
&&
c
<=
126
)
*
dst
++
=
c
;
else
else
{
*
dst
++
=
'\\'
;
*
dst
++
=
'0'
+
((
c
>>
6
)
&
7
);
*
dst
++
=
'0'
+
((
c
>>
3
)
&
7
);
*
dst
++
=
'0'
+
((
c
>>
0
)
&
7
);
sprintf
(
dst
,
"%04x"
,
c
);
dst
+=
4
;
}
}
}
*
dst
++
=
'"'
;
if
(
*
src
)
{
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
}
*
dst
++
=
'"'
;
*
dst
=
0
;
*
dst
=
'\0'
;
return
res
;
}
...
...
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