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
2d7e976e
Commit
2d7e976e
authored
Jul 10, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed signedness warnings.
parent
92f11aa7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
loader.c
libs/wine/loader.c
+2
-2
res16.c
tools/winebuild/res16.c
+1
-1
res32.c
tools/winebuild/res32.c
+1
-1
dumpres.c
tools/wrc/dumpres.c
+3
-3
genres.c
tools/wrc/genres.c
+1
-1
No files found.
libs/wine/loader.c
View file @
2d7e976e
...
...
@@ -305,7 +305,7 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
/* Build the code section */
strcpy
(
sec
->
Name
,
".text"
);
memcpy
(
sec
->
Name
,
".text"
,
sizeof
(
".text"
)
);
sec
->
SizeOfRawData
=
data_start
-
code_start
;
sec
->
Misc
.
VirtualSize
=
sec
->
SizeOfRawData
;
sec
->
VirtualAddress
=
code_start
;
...
...
@@ -315,7 +315,7 @@ static void *map_dll( const IMAGE_NT_HEADERS *nt_descr )
/* Build the data section */
strcpy
(
sec
->
Name
,
".data"
);
memcpy
(
sec
->
Name
,
".data"
,
sizeof
(
".data"
)
);
sec
->
SizeOfRawData
=
data_end
-
data_start
;
sec
->
Misc
.
VirtualSize
=
sec
->
SizeOfRawData
;
sec
->
VirtualAddress
=
data_start
;
...
...
tools/winebuild/res16.c
View file @
2d7e976e
...
...
@@ -142,7 +142,7 @@ static void get_string( struct string_id *str )
}
else
{
char
*
p
=
xmalloc
(
(
strlen
(
file_pos
)
+
1
)
);
char
*
p
=
xmalloc
(
(
strlen
(
(
char
*
)
file_pos
)
+
1
)
);
str
->
str
=
p
;
str
->
id
=
0
;
while
((
*
p
++
=
get_byte
()));
...
...
tools/winebuild/res32.c
View file @
2d7e976e
...
...
@@ -207,7 +207,7 @@ static void load_next_resource( DLLSPEC *spec )
get_dword
();
/* skip version */
get_dword
();
/* skip characteristics */
file_pos
=
(
const
char
*
)
res
->
data
+
res
->
data_size
;
file_pos
=
(
const
unsigned
char
*
)
res
->
data
+
res
->
data_size
;
if
(
file_pos
>
file_end
)
fatal_error
(
"%s is a truncated file
\n
"
,
file_name
);
}
...
...
tools/wrc/dumpres.c
View file @
2d7e976e
...
...
@@ -78,13 +78,13 @@ const char *get_typename(const resource_t* r)
* Remarks : No codepage translation is done.
*****************************************************************************
*/
static
char
*
strncpyWtoA
(
char
*
cs
,
const
short
*
ws
,
int
maxlen
)
static
char
*
strncpyWtoA
(
char
*
cs
,
const
WCHAR
*
ws
,
int
maxlen
)
{
char
*
cptr
=
cs
;
const
short
*
wsMax
=
ws
+
maxlen
-
1
;
const
WCHAR
*
wsMax
=
ws
+
maxlen
-
1
;
while
(
*
ws
&&
ws
<
wsMax
)
{
if
(
*
ws
<
-
128
||
*
ws
>
127
)
if
(
*
ws
>
255
)
fprintf
(
stderr
,
"***Warning: Unicode string contains non-printable chars***
\n
"
);
*
cptr
++
=
(
char
)
*
ws
++
;
}
...
...
tools/wrc/genres.c
View file @
2d7e976e
...
...
@@ -1784,7 +1784,7 @@ char *prep_nid_for_label(const name_id_t *nid)
if
(
nid
->
type
==
name_str
&&
nid
->
name
.
s_name
->
type
==
str_unicode
)
{
short
*
sptr
;
WCHAR
*
sptr
;
int
i
;
sptr
=
nid
->
name
.
s_name
->
str
.
wstr
;
buf
[
0
]
=
'\0'
;
...
...
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