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
109ffd0f
Commit
109ffd0f
authored
Apr 13, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Make the string reference count a short.
This is safe because the reference count is stored in 2 bytes on disk. (This is commit
ff2f8948
reapplied because of incorrect revert in
88214a72
).
parent
e1eaa413
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
msipriv.h
dlls/msi/msipriv.h
+1
-1
string.c
dlls/msi/string.c
+5
-5
No files found.
dlls/msi/msipriv.h
View file @
109ffd0f
...
...
@@ -660,7 +660,7 @@ enum StringPersistence
StringNonPersistent
=
1
};
extern
BOOL
msi_addstringW
(
string_table
*
st
,
UINT
string_no
,
const
WCHAR
*
data
,
int
len
,
U
IN
T
refcount
,
enum
StringPersistence
persistence
);
extern
BOOL
msi_addstringW
(
string_table
*
st
,
UINT
string_no
,
const
WCHAR
*
data
,
int
len
,
U
SHOR
T
refcount
,
enum
StringPersistence
persistence
);
extern
UINT
msi_string2idW
(
const
string_table
*
st
,
LPCWSTR
buffer
,
UINT
*
id
);
extern
VOID
msi_destroy_stringtable
(
string_table
*
st
);
...
...
dlls/msi/string.c
View file @
109ffd0f
...
...
@@ -44,8 +44,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msidb);
typedef
struct
_msistring
{
U
IN
T
persistent_refcount
;
U
IN
T
nonpersistent_refcount
;
U
SHOR
T
persistent_refcount
;
U
SHOR
T
nonpersistent_refcount
;
LPWSTR
str
;
}
msistring
;
...
...
@@ -188,7 +188,7 @@ static void insert_string_sorted( string_table *st, UINT string_id )
st
->
sortcount
++
;
}
static
void
set_st_entry
(
string_table
*
st
,
UINT
n
,
LPWSTR
str
,
U
IN
T
refcount
,
enum
StringPersistence
persistence
)
static
void
set_st_entry
(
string_table
*
st
,
UINT
n
,
LPWSTR
str
,
U
SHOR
T
refcount
,
enum
StringPersistence
persistence
)
{
if
(
persistence
==
StringPersistent
)
{
...
...
@@ -237,7 +237,7 @@ static UINT msi_string2idA( const string_table *st, LPCSTR buffer, UINT *id )
return
r
;
}
static
int
msi_addstring
(
string_table
*
st
,
UINT
n
,
const
CHAR
*
data
,
int
len
,
U
IN
T
refcount
,
enum
StringPersistence
persistence
)
static
int
msi_addstring
(
string_table
*
st
,
UINT
n
,
const
CHAR
*
data
,
int
len
,
U
SHOR
T
refcount
,
enum
StringPersistence
persistence
)
{
LPWSTR
str
;
int
sz
;
...
...
@@ -288,7 +288,7 @@ static int msi_addstring( string_table *st, UINT n, const CHAR *data, int len, U
return
n
;
}
int
msi_addstringW
(
string_table
*
st
,
UINT
n
,
const
WCHAR
*
data
,
int
len
,
U
IN
T
refcount
,
enum
StringPersistence
persistence
)
int
msi_addstringW
(
string_table
*
st
,
UINT
n
,
const
WCHAR
*
data
,
int
len
,
U
SHOR
T
refcount
,
enum
StringPersistence
persistence
)
{
LPWSTR
str
;
...
...
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