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
7bce5688
Commit
7bce5688
authored
Dec 19, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Remove unneeded casts.
parent
4612b15f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ne_module.c
dlls/kernel32/ne_module.c
+2
-2
ne_segment.c
dlls/kernel32/ne_segment.c
+2
-2
resource.c
dlls/kernel32/resource.c
+1
-1
No files found.
dlls/kernel32/ne_module.c
View file @
7bce5688
...
...
@@ -529,7 +529,7 @@ FARPROC16 NE_GetEntryPointEx( HMODULE16 hModule, WORD ordinal, BOOL16 snoop )
if
(
!
snoop
)
return
(
FARPROC16
)
MAKESEGPTR
(
sel
,
offset
);
else
return
(
FARPROC16
)
SNOOP16_GetProcAddress16
(
hModule
,
ordinal
,(
FARPROC16
)
MAKESEGPTR
(
sel
,
offset
));
return
SNOOP16_GetProcAddress16
(
hModule
,
ordinal
,(
FARPROC16
)
MAKESEGPTR
(
sel
,
offset
));
}
...
...
@@ -2051,7 +2051,7 @@ static HMODULE16 create_dummy_module( HMODULE module32 )
pStr
+=
len
+
2
;
/* All tables zero terminated */
pModule
->
ne_rsrctab
=
pModule
->
ne_imptab
=
pModule
->
ne_enttab
=
(
char
*
)
pStr
-
(
char
*
)
pModule
;
pModule
->
ne_rsrctab
=
pModule
->
ne_imptab
=
pModule
->
ne_enttab
=
pStr
-
(
char
*
)
pModule
;
NE_RegisterModule
(
pModule
);
pModule
->
owner32
=
LoadLibraryA
(
filename
);
/* increment the ref count of the 32-bit module */
...
...
dlls/kernel32/ne_segment.c
View file @
7bce5688
...
...
@@ -463,7 +463,7 @@ BOOL NE_LoadSegment( NE_MODULE *pModule, WORD segnum )
BOOL
NE_LoadAllSegments
(
NE_MODULE
*
pModule
)
{
int
i
;
SEGTABLEENTRY
*
pSegTable
=
(
SEGTABLEENTRY
*
)
NE_SEG_TABLE
(
pModule
);
SEGTABLEENTRY
*
pSegTable
=
NE_SEG_TABLE
(
pModule
);
if
(
pModule
->
ne_flags
&
NE_FFLAGS_SELFLOAD
)
{
...
...
@@ -551,7 +551,7 @@ static void NE_FixupSegmentPrologs(NE_MODULE *pModule, WORD segnum)
/*TRACE("entry: %p, entry->segnum: %d, entry->offs: %04x\n", entry, entry->segnum, entry->offs);*/
if
(
entry
->
segnum
==
segnum
)
{
pFunc
=
((
BYTE
*
)
pSeg
+
entry
->
offs
)
;
pFunc
=
pSeg
+
entry
->
offs
;
TRACE
(
"pFunc: %p, *(DWORD *)pFunc: %08x, num_entries: %d
\n
"
,
pFunc
,
*
(
DWORD
*
)
pFunc
,
num_entries
);
if
(
*
(
pFunc
+
2
)
==
0x90
)
{
...
...
dlls/kernel32/resource.c
View file @
7bce5688
...
...
@@ -586,7 +586,7 @@ LPVOID WINAPI LockResource( HGLOBAL handle )
TRACE
(
"(%p)
\n
"
,
handle
);
if
(
HIWORD
(
handle
))
/* 32-bit memory handle */
return
(
LPVOID
)
handle
;
return
handle
;
/* 16-bit memory handle */
return
LockResource16
(
HGLOBAL_16
(
handle
)
);
...
...
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