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
d6dff398
Commit
d6dff398
authored
Feb 25, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release unused space in debug strings to avoid too frequent
wrap-arounds in the circular buffer.
parent
23ce7f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
debugstr.c
misc/debugstr.c
+13
-2
No files found.
misc/debugstr.c
View file @
d6dff398
...
@@ -52,6 +52,15 @@ gimme1 (int n)
...
@@ -52,6 +52,15 @@ gimme1 (int n)
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */
/* release extra space that we requested in gimme1() */
static
inline
void
release
(
void
*
ptr
)
{
struct
debug_info
*
info
=
NtCurrentTeb
()
->
debug_info
;
info
->
str_pos
=
ptr
;
}
/* ---------------------------------------------------------------------- */
LPCSTR
debugstr_an
(
LPCSTR
src
,
int
n
)
LPCSTR
debugstr_an
(
LPCSTR
src
,
int
n
)
{
{
LPSTR
dst
,
res
;
LPSTR
dst
,
res
;
...
@@ -89,7 +98,8 @@ LPCSTR debugstr_an (LPCSTR src, int n)
...
@@ -89,7 +98,8 @@ LPCSTR debugstr_an (LPCSTR src, int n)
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
}
}
*
dst
=
'\0'
;
*
dst
++
=
'\0'
;
release
(
dst
);
return
res
;
return
res
;
}
}
...
@@ -132,7 +142,8 @@ LPCSTR debugstr_wn (LPCWSTR src, int n)
...
@@ -132,7 +142,8 @@ LPCSTR debugstr_wn (LPCWSTR src, int n)
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
*
dst
++
=
'.'
;
}
}
*
dst
=
'\0'
;
*
dst
++
=
'\0'
;
release
(
dst
);
return
res
;
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