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
4686efd2
Commit
4686efd2
authored
Jul 07, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Get rid of the msistring typedef.
parent
540d1890
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
string.c
dlls/msi/string.c
+7
-7
No files found.
dlls/msi/string.c
View file @
4686efd2
...
...
@@ -41,12 +41,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msidb
);
typedef
struct
_
msistring
struct
msistring
{
USHORT
persistent_refcount
;
USHORT
nonpersistent_refcount
;
LPWSTR
str
;
}
msistring
;
};
struct
string_table
{
...
...
@@ -54,8 +54,8 @@ struct string_table
UINT
freeslot
;
UINT
codepage
;
UINT
sortcount
;
msistring
*
strings
;
/* an array of strings */
UINT
*
sorted
;
/* index */
struct
msistring
*
strings
;
/* an array of strings */
UINT
*
sorted
;
/* index */
};
static
BOOL
validate_codepage
(
UINT
codepage
)
...
...
@@ -81,7 +81,7 @@ static string_table *init_stringtable( int entries, UINT codepage )
if
(
entries
<
1
)
entries
=
1
;
st
->
strings
=
msi_alloc_zero
(
sizeof
(
msistring
)
*
entries
);
st
->
strings
=
msi_alloc_zero
(
sizeof
(
struct
msistring
)
*
entries
);
if
(
!
st
->
strings
)
{
msi_free
(
st
);
...
...
@@ -122,7 +122,7 @@ VOID msi_destroy_stringtable( string_table *st )
static
int
st_find_free_entry
(
string_table
*
st
)
{
UINT
i
,
sz
,
*
s
;
msistring
*
p
;
struct
msistring
*
p
;
TRACE
(
"%p
\n
"
,
st
);
...
...
@@ -140,7 +140,7 @@ static int st_find_free_entry( string_table *st )
/* dynamically resize */
sz
=
st
->
maxcount
+
1
+
st
->
maxcount
/
2
;
p
=
msi_realloc_zero
(
st
->
strings
,
sz
*
sizeof
(
msistring
)
);
p
=
msi_realloc_zero
(
st
->
strings
,
sz
*
sizeof
(
struct
msistring
)
);
if
(
!
p
)
return
-
1
;
...
...
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