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
Hide 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)
...
@@ -450,7 +450,7 @@ static HRESULT parse_version(IAssemblyNameImpl *name, LPWSTR version)
return
S_OK
;
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
};
static
const
WCHAR
empty
[]
=
{
0
};
...
@@ -480,7 +480,7 @@ static BYTE hextobyte(WCHAR c)
...
@@ -480,7 +480,7 @@ static BYTE hextobyte(WCHAR c)
return
0
;
return
0
;
}
}
static
HRESULT
parse_pubkey
(
IAssemblyNameImpl
*
name
,
LPWSTR
pubkey
)
static
HRESULT
parse_pubkey
(
IAssemblyNameImpl
*
name
,
LP
C
WSTR
pubkey
)
{
{
int
i
;
int
i
;
BYTE
val
;
BYTE
val
;
...
...
dlls/fusion/assembly.c
View file @
ea1ec880
...
@@ -146,7 +146,7 @@ static VOID *assembly_data_offset(ASSEMBLY *assembly, ULONG offset)
...
@@ -146,7 +146,7 @@ static VOID *assembly_data_offset(ASSEMBLY *assembly, ULONG offset)
#define MAX_TABLES_3BIT_ENCODE 8191
#define MAX_TABLES_3BIT_ENCODE 8191
#define MAX_TABLES_5BIT_ENCODE 2047
#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
;
DWORD
size
;
INT
tables
;
INT
tables
;
...
@@ -731,11 +731,11 @@ HRESULT assembly_release(ASSEMBLY *assembly)
...
@@ -731,11 +731,11 @@ HRESULT assembly_release(ASSEMBLY *assembly)
return
S_OK
;
return
S_OK
;
}
}
static
LPWSTR
assembly_dup_str
(
ASSEMBLY
*
assembly
,
DWORD
index
)
static
LPWSTR
assembly_dup_str
(
const
ASSEMBLY
*
assembly
,
DWORD
index
)
{
{
int
len
;
int
len
;
LPWSTR
cpy
;
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
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
...
@@ -772,7 +772,7 @@ HRESULT assembly_get_name(ASSEMBLY *assembly, LPWSTR *name)
...
@@ -772,7 +772,7 @@ HRESULT assembly_get_name(ASSEMBLY *assembly, LPWSTR *name)
return
S_OK
;
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
));
LPWSTR
cpy
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
assembly
->
path
)
+
1
)
*
sizeof
(
WCHAR
));
*
path
=
cpy
;
*
path
=
cpy
;
...
...
dlls/fusion/fusionpriv.h
View file @
ea1ec880
...
@@ -431,7 +431,7 @@ typedef struct tagASSEMBLY ASSEMBLY;
...
@@ -431,7 +431,7 @@ typedef struct tagASSEMBLY ASSEMBLY;
HRESULT
assembly_create
(
ASSEMBLY
**
out
,
LPCWSTR
file
);
HRESULT
assembly_create
(
ASSEMBLY
**
out
,
LPCWSTR
file
);
HRESULT
assembly_release
(
ASSEMBLY
*
assembly
);
HRESULT
assembly_release
(
ASSEMBLY
*
assembly
);
HRESULT
assembly_get_name
(
ASSEMBLY
*
assembly
,
LPWSTR
*
name
);
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
);
HRESULT
assembly_get_version
(
ASSEMBLY
*
assembly
,
LPWSTR
*
version
);
BYTE
assembly_get_architecture
(
ASSEMBLY
*
assembly
);
BYTE
assembly_get_architecture
(
ASSEMBLY
*
assembly
);
HRESULT
assembly_get_pubkey_token
(
ASSEMBLY
*
assembly
,
LPWSTR
*
token
);
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