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
5c18f69c
Commit
5c18f69c
authored
Jul 31, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 31, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added { } around stuff in ADD_TO_T macros.
parent
7248d47f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
format_msg.c
dlls/kernel/format_msg.c
+8
-6
No files found.
dlls/kernel/format_msg.c
View file @
5c18f69c
...
...
@@ -194,13 +194,14 @@ DWORD WINAPI FormatMessageA(
t
=
target
;
talloced
=
100
;
#define ADD_TO_T(c) \
#define ADD_TO_T(c)
do {
\
*t++=c;\
if (t-target == talloced) {\
target = (char*)HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2);\
t = target+talloced;\
talloced*=2;\
}
}\
} while (0)
if
(
from
)
{
f
=
from
;
...
...
@@ -286,7 +287,7 @@ DWORD WINAPI FormatMessageA(
f
++
;
break
;
default:
ADD_TO_T
(
*
f
++
)
ADD_TO_T
(
*
f
++
)
;
break
;
}
}
else
{
/* '\n' or '\r' gets mapped to "\r\n" */
...
...
@@ -396,13 +397,14 @@ DWORD WINAPI FormatMessageW(
t
=
target
;
talloced
=
100
;
#define ADD_TO_T(c) \
#define ADD_TO_T(c)
do {
\
*t++=c;\
if (t-target == talloced) {\
target = (char*)HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2);\
t = target+talloced;\
talloced*=2;\
}
} \
} while (0)
if
(
from
)
{
f
=
from
;
...
...
@@ -491,7 +493,7 @@ DWORD WINAPI FormatMessageW(
f
++
;
break
;
default:
ADD_TO_T
(
*
f
++
)
ADD_TO_T
(
*
f
++
)
;
break
;
}
}
else
{
/* '\n' or '\r' gets mapped to "\r\n" */
...
...
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