Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3f441677
Commit
3f441677
authored
Oct 19, 2002
by
Martin Fuchs
Committed by
Alexandre Julliard
Oct 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected the alignment of unicode message table strings in wmc, and
switched to unicode for message strings, so that FormatMessage() now works.
parent
b3332d74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Make.rules.in
Make.rules.in
+1
-1
write.c
tools/wmc/write.c
+5
-2
No files found.
Make.rules.in
View file @
3f441677
...
...
@@ -117,7 +117,7 @@ LINTS = $(C_SRCS:.c=.ln)
$(AS) -o $@ $<
.mc.mc.rc:
$(LDPATH) $(WMC) -i -H /dev/null -o $@ $<
$(LDPATH) $(WMC) -i -
U -
H /dev/null -o $@ $<
.rc.res:
$(LDPATH) $(WRC) $(WRCFLAGS) $(DIVINCL) -o $@ -r $<
...
...
tools/wmc/write.c
View file @
3f441677
...
...
@@ -359,7 +359,10 @@ static char *make_string(WCHAR *uc, int len, int codepage)
b
=
0
;
}
}
len
=
(
len
+
3
)
&
~
3
;
if
(
unicodeout
)
len
=
(
len
+
1
)
&
~
1
;
else
len
=
(
len
+
3
)
&
~
3
;
for
(;
i
<
len
;
i
++
)
{
*
cptr
++
=
'\\'
;
...
...
@@ -467,7 +470,7 @@ static void write_rcinline(FILE *fp)
cptr
=
make_string
(
blk
->
msgs
[
j
]
->
msg
,
l
,
unicodeout
?
0
:
blk
->
msgs
[
j
]
->
cp
);
fprintf
(
fp
,
"
\n
/* Msg 0x%08x */ 0x%04x, 0x000%c,
\n
"
,
blk
->
idlo
+
j
,
(
unicodeout
?
(
l
*
2
+
3
)
&~
3
:
(
l
+
3
)
&~
3
)
+
4
,
(
unicodeout
?
(
l
*
2
+
3
)
&~
3
:
(
l
+
3
)
&~
3
)
+
4
,
unicodeout
?
'1'
:
'0'
);
fprintf
(
fp
,
"%s%s
\n
"
,
cptr
,
comma
);
free
(
cptr
);
...
...
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