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
80d62c78
Commit
80d62c78
authored
Aug 02, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 02, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PE_MESSAGE_HEADER.Length contains the header itself too.
parent
99443aa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
format_msg.c
dlls/kernel/format_msg.c
+2
-2
write.c
tools/wmc/write.c
+1
-1
No files found.
dlls/kernel/format_msg.c
View file @
80d62c78
...
...
@@ -34,7 +34,7 @@ DEFAULT_DEBUG_CHANNEL(resource);
* 8: DWORD offset from start to the stringentries
*
* (lastentry-firstentry) * stringentry:
* 0: WORD len (0 marks end)
* 0: WORD len (0 marks end)
[ includes the 4 byte header length ]
* 2: WORD flags
* 4: CHAR[len-4]
* (stringentry i of a subentry refers to the ID 'firstentry+i')
...
...
@@ -79,7 +79,7 @@ static INT load_messageA( HMODULE instance, UINT id, WORD lang,
for
(
i
=
id
;
i
--
;)
{
if
(
!
mre
->
Length
)
return
0
;
mre
=
(
PMESSAGE_RESOURCE_ENTRY
)(((
char
*
)
mre
)
+
(
mre
->
Length
)
+
2
*
sizeof
(
USHORT
)
);
mre
=
(
PMESSAGE_RESOURCE_ENTRY
)(((
char
*
)
mre
)
+
mre
->
Length
);
}
slen
=
mre
->
Length
;
TRACE
(
" - strlen=%d
\n
"
,
slen
);
...
...
tools/wmc/write.c
View file @
80d62c78
...
...
@@ -463,7 +463,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
,
(
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