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
ea1ec880
Commit
ea1ec880
authored
Oct 02, 2010
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Constify some variables.
parent
49e993c6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
asmname.c
dlls/fusion/asmname.c
+2
-2
assembly.c
dlls/fusion/assembly.c
+4
-4
fusionpriv.h
dlls/fusion/fusionpriv.h
+1
-1
No files found.
dlls/fusion/asmname.c
View file @
ea1ec880
...
...
@@ -450,7 +450,7 @@ static HRESULT parse_version(IAssemblyNameImpl *name, LPWSTR version)
return
S_OK
;
}
static
HRESULT
parse_culture
(
IAssemblyNameImpl
*
name
,
LPWSTR
culture
)
static
HRESULT
parse_culture
(
IAssemblyNameImpl
*
name
,
LP
C
WSTR
culture
)
{
static
const
WCHAR
empty
[]
=
{
0
};
...
...
@@ -480,7 +480,7 @@ static BYTE hextobyte(WCHAR c)
return
0
;
}
static
HRESULT
parse_pubkey
(
IAssemblyNameImpl
*
name
,
LPWSTR
pubkey
)
static
HRESULT
parse_pubkey
(
IAssemblyNameImpl
*
name
,
LP
C
WSTR
pubkey
)
{
int
i
;
BYTE
val
;
...
...
dlls/fusion/assembly.c
View file @
ea1ec880
...
...
@@ -146,7 +146,7 @@ static VOID *assembly_data_offset(ASSEMBLY *assembly, ULONG offset)
#define MAX_TABLES_3BIT_ENCODE 8191
#define MAX_TABLES_5BIT_ENCODE 2047
static
inline
ULONG
get_table_size
(
ASSEMBLY
*
assembly
,
DWORD
index
)
static
inline
ULONG
get_table_size
(
const
ASSEMBLY
*
assembly
,
DWORD
index
)
{
DWORD
size
;
INT
tables
;
...
...
@@ -731,11 +731,11 @@ HRESULT assembly_release(ASSEMBLY *assembly)
return
S_OK
;
}
static
LPWSTR
assembly_dup_str
(
ASSEMBLY
*
assembly
,
DWORD
index
)
static
LPWSTR
assembly_dup_str
(
const
ASSEMBLY
*
assembly
,
DWORD
index
)
{
int
len
;
LPWSTR
cpy
;
LP
STR
str
=
(
LP
STR
)
&
assembly
->
strings
[
index
];
LP
CSTR
str
=
(
LPC
STR
)
&
assembly
->
strings
[
index
];
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
...
...
@@ -772,7 +772,7 @@ HRESULT assembly_get_name(ASSEMBLY *assembly, LPWSTR *name)
return
S_OK
;
}
HRESULT
assembly_get_path
(
ASSEMBLY
*
assembly
,
LPWSTR
*
path
)
HRESULT
assembly_get_path
(
const
ASSEMBLY
*
assembly
,
LPWSTR
*
path
)
{
LPWSTR
cpy
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
assembly
->
path
)
+
1
)
*
sizeof
(
WCHAR
));
*
path
=
cpy
;
...
...
dlls/fusion/fusionpriv.h
View file @
ea1ec880
...
...
@@ -431,7 +431,7 @@ typedef struct tagASSEMBLY ASSEMBLY;
HRESULT
assembly_create
(
ASSEMBLY
**
out
,
LPCWSTR
file
);
HRESULT
assembly_release
(
ASSEMBLY
*
assembly
);
HRESULT
assembly_get_name
(
ASSEMBLY
*
assembly
,
LPWSTR
*
name
);
HRESULT
assembly_get_path
(
ASSEMBLY
*
assembly
,
LPWSTR
*
path
);
HRESULT
assembly_get_path
(
const
ASSEMBLY
*
assembly
,
LPWSTR
*
path
);
HRESULT
assembly_get_version
(
ASSEMBLY
*
assembly
,
LPWSTR
*
version
);
BYTE
assembly_get_architecture
(
ASSEMBLY
*
assembly
);
HRESULT
assembly_get_pubkey_token
(
ASSEMBLY
*
assembly
,
LPWSTR
*
token
);
...
...
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