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
bcd8fa3c
Commit
bcd8fa3c
authored
Aug 08, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle loading strings over 64k from the string table.
parent
bf0cb12b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
table.c
dlls/msi/table.c
+28
-3
No files found.
dlls/msi/table.c
View file @
bcd8fa3c
...
@@ -731,15 +731,40 @@ UINT load_string_table( MSIDATABASE *db )
...
@@ -731,15 +731,40 @@ UINT load_string_table( MSIDATABASE *db )
db
->
strings
=
msi_init_stringtable
(
count
,
codepage
);
db
->
strings
=
msi_init_stringtable
(
count
,
codepage
);
offset
=
0
;
offset
=
0
;
n
=
1
;
for
(
i
=
1
;
i
<
count
;
i
++
)
for
(
i
=
1
;
i
<
count
;
i
++
)
{
{
len
=
pool
[
i
*
2
];
len
=
pool
[
i
*
2
];
n
=
msi_addstring
(
db
->
strings
,
i
,
data
+
offset
,
len
,
pool
[
i
*
2
+
1
]
);
if
(
n
!=
i
)
/*
ERR
(
"Failed to add string %ld
\n
"
,
i
);
* If a string is over 64k, the previous string entry is made null
* and its the high word of the length is inserted in the null string's
* reference count field.
*/
if
(
pool
[
i
*
2
-
2
]
==
0
)
len
+=
pool
[
i
*
2
-
1
]
*
0x10000
;
if
(
(
offset
+
len
)
>
datasize
)
{
ERR
(
"string table corrupt?
\n
"
);
break
;
}
/* don't add the high word of a string's length as a string */
if
(
len
||
!
pool
[
i
*
2
+
1
]
)
{
r
=
msi_addstring
(
db
->
strings
,
n
,
data
+
offset
,
len
,
pool
[
i
*
2
+
1
]
);
if
(
r
!=
n
)
ERR
(
"Failed to add string %ld
\n
"
,
n
);
n
++
;
}
offset
+=
len
;
offset
+=
len
;
}
}
if
(
datasize
!=
offset
)
ERR
(
"string table load failed! (%08x != %08lx)
\n
"
,
datasize
,
offset
);
TRACE
(
"Loaded %ld strings
\n
"
,
count
);
TRACE
(
"Loaded %ld strings
\n
"
,
count
);
ret
=
ERROR_SUCCESS
;
ret
=
ERROR_SUCCESS
;
...
...
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