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
eefea58d
Commit
eefea58d
authored
Jan 25, 2007
by
Joris Huizer
Committed by
Alexandre Julliard
Jan 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: sign-compare fixes.
parent
6f734ac7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
loader.c
libs/wine/loader.c
+8
-7
mmap.c
libs/wine/mmap.c
+1
-1
No files found.
libs/wine/loader.c
View file @
eefea58d
...
...
@@ -59,10 +59,10 @@ char **__wine_main_environ = NULL;
struct
dll_path_context
{
int
index
;
/* current index in the dll path list */
char
*
buffer
;
/* buffer used for storing path names */
char
*
name
;
/* start of file name part in buffer (including leading slash) */
int
namelen
;
/* length of file name without .so extension */
unsigned
int
index
;
/* current index in the dll path list */
char
*
buffer
;
/* buffer used for storing path names */
char
*
name
;
/* start of file name part in buffer (including leading slash) */
int
namelen
;
/* length of file name without .so extension */
};
#define MAX_DLLS 100
...
...
@@ -82,7 +82,7 @@ static load_dll_callback_t load_dll_callback;
static
const
char
*
build_dir
;
static
const
char
*
default_dlldir
;
static
const
char
**
dll_paths
;
static
int
nb_dll_paths
;
static
unsigned
int
nb_dll_paths
;
static
int
dll_path_maxlen
;
extern
void
mmap_init
(
void
);
...
...
@@ -162,7 +162,7 @@ inline static char *prepend( char *buffer, const char *str, size_t len )
/* get a filename from the next entry in the dll path */
static
char
*
next_dll_path
(
struct
dll_path_context
*
context
)
{
int
index
=
context
->
index
++
;
unsigned
int
index
=
context
->
index
++
;
int
namelen
=
context
->
namelen
;
char
*
path
=
context
->
name
;
...
...
@@ -331,7 +331,8 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
DWORD
code_start
,
data_start
,
data_end
;
const
size_t
page_size
=
getpagesize
();
const
size_t
page_mask
=
page_size
-
1
;
int
i
,
delta
,
nb_sections
=
2
;
/* code + data */
int
delta
,
nb_sections
=
2
;
/* code + data */
unsigned
int
i
;
size_t
size
=
(
sizeof
(
IMAGE_DOS_HEADER
)
+
sizeof
(
IMAGE_NT_HEADERS
)
...
...
libs/wine/mmap.c
View file @
eefea58d
...
...
@@ -49,7 +49,7 @@ struct reserved_area
};
static
struct
list
reserved_areas
=
LIST_INIT
(
reserved_areas
);
static
const
int
granularity_mask
=
0xffff
;
/* reserved areas have 64k granularity */
static
const
unsigned
int
granularity_mask
=
0xffff
;
/* reserved areas have 64k granularity */
#ifdef HAVE_MMAP
...
...
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