Commit e931b5d1 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

msvcrt: Remove superfluous casts.

parent 0fb9de61
......@@ -87,7 +87,7 @@ static void dump_obj_locator( const rtti_object_locator *ptr )
static void dump_obj_locator( const rtti_object_locator *ptr )
{
int i;
char *base = ptr->signature == 0 ? (char*)RtlPcToFileHeader((void*)ptr, (void**)&base) : (char*)ptr - ptr->object_locator;
char *base = ptr->signature == 0 ? RtlPcToFileHeader((void*)ptr, (void**)&base) : (char*)ptr - ptr->object_locator;
const rtti_object_hierarchy *h = (const rtti_object_hierarchy*)(base + ptr->type_hierarchy);
const type_info *type_descriptor = (const type_info*)(base + ptr->type_descriptor);
......@@ -864,7 +864,7 @@ const type_info* CDECL MSVCRT___RTtypeid(void *cppobj)
char *base;
if(obj_locator->signature == 0)
base = (char*)RtlPcToFileHeader((void*)obj_locator, (void**)&base);
base = RtlPcToFileHeader((void*)obj_locator, (void**)&base);
else
base = (char*)obj_locator - obj_locator->object_locator;
......@@ -992,7 +992,7 @@ void* CDECL MSVCRT___RTDynamicCast(void *cppobj, int unknown,
if (TRACE_ON(msvcrt)) dump_obj_locator(obj_locator);
if(obj_locator->signature == 0)
base = (char*)RtlPcToFileHeader((void*)obj_locator, (void**)&base);
base = RtlPcToFileHeader((void*)obj_locator, (void**)&base);
else
base = (char*)obj_locator - obj_locator->object_locator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment