mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 03:15:18 +00:00
kernel32: Remove unneeded casts.
This commit is contained in:
parent
4612b15fff
commit
7bce56881f
@ -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 */
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user