kernel32: Remove unneeded casts.
This commit is contained in:
parent
c9700896fe
commit
650b273361
|
@ -133,7 +133,7 @@ typedef struct
|
|||
/* All local heap allocations are aligned on 4-byte boundaries */
|
||||
#define LALIGN(word) (((word) + 3) & ~3)
|
||||
|
||||
#define ARENA_PTR(ptr,arena) ((LOCALARENA *)((char*)(ptr)+(arena)))
|
||||
#define ARENA_PTR(ptr,arena) ((LOCALARENA *)((ptr)+(arena)))
|
||||
#define ARENA_PREV(ptr,arena) (ARENA_PTR((ptr),(arena))->prev & ~3)
|
||||
#define ARENA_NEXT(ptr,arena) (ARENA_PTR((ptr),(arena))->next)
|
||||
#define ARENA_FLAGS(ptr,arena) (ARENA_PTR((ptr),(arena))->prev & 3)
|
||||
|
@ -1937,7 +1937,7 @@ static VOID Local32_FromHandle( LOCAL32HEADER *header, INT16 type,
|
|||
case 1:
|
||||
{
|
||||
WORD *selTable = (LPWORD)(header->base + header->selectorTableOffset);
|
||||
DWORD offset = (LPBYTE)ptr - header->base;
|
||||
DWORD offset = ptr - header->base;
|
||||
*addr = MAKELONG( offset & 0x7fff, selTable[offset >> 15] );
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -806,7 +806,7 @@ static BOOL load_library_as_datafile( LPCWSTR name, HMODULE* hmod)
|
|||
|
||||
*hmod = 0;
|
||||
|
||||
if (SearchPathW( NULL, (LPCWSTR)name, dotDLL, sizeof(filenameW) / sizeof(filenameW[0]),
|
||||
if (SearchPathW( NULL, name, dotDLL, sizeof(filenameW) / sizeof(filenameW[0]),
|
||||
filenameW, NULL ))
|
||||
{
|
||||
hFile = CreateFileW( filenameW, GENERIC_READ, FILE_SHARE_READ,
|
||||
|
|
Loading…
Reference in New Issue