msvcrt: Remove superfluous casts.
This commit is contained in:
parent
0fb9de61a5
commit
e931b5d17e
|
@ -87,7 +87,7 @@ static void dump_obj_locator( const rtti_object_locator *ptr )
|
||||||
static void dump_obj_locator( const rtti_object_locator *ptr )
|
static void dump_obj_locator( const rtti_object_locator *ptr )
|
||||||
{
|
{
|
||||||
int i;
|
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 rtti_object_hierarchy *h = (const rtti_object_hierarchy*)(base + ptr->type_hierarchy);
|
||||||
const type_info *type_descriptor = (const type_info*)(base + ptr->type_descriptor);
|
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;
|
char *base;
|
||||||
|
|
||||||
if(obj_locator->signature == 0)
|
if(obj_locator->signature == 0)
|
||||||
base = (char*)RtlPcToFileHeader((void*)obj_locator, (void**)&base);
|
base = RtlPcToFileHeader((void*)obj_locator, (void**)&base);
|
||||||
else
|
else
|
||||||
base = (char*)obj_locator - obj_locator->object_locator;
|
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 (TRACE_ON(msvcrt)) dump_obj_locator(obj_locator);
|
||||||
|
|
||||||
if(obj_locator->signature == 0)
|
if(obj_locator->signature == 0)
|
||||||
base = (char*)RtlPcToFileHeader((void*)obj_locator, (void**)&base);
|
base = RtlPcToFileHeader((void*)obj_locator, (void**)&base);
|
||||||
else
|
else
|
||||||
base = (char*)obj_locator - obj_locator->object_locator;
|
base = (char*)obj_locator - obj_locator->object_locator;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue