diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c index 5ea595d05fc..854566e2e4c 100644 --- a/dlls/msvcrt/cpp.c +++ b/dlls/msvcrt/cpp.c @@ -97,6 +97,12 @@ extern const vtable_ptr MSVCRT_bad_cast_vtable; extern const vtable_ptr MSVCRT___non_rtti_object_vtable; extern const vtable_ptr MSVCRT_type_info_vtable; +/* get the vtable pointer for a C++ object */ +static inline const vtable_ptr *get_vtable( void *obj ) +{ + return *(const vtable_ptr **)obj; +} + static inline const rtti_object_locator *get_obj_locator( void *cppobj ) { const vtable_ptr *vtable = get_vtable( cppobj ); diff --git a/dlls/msvcrt/cppexcept.h b/dlls/msvcrt/cppexcept.h index d4c8068b6c6..bf607c9680b 100644 --- a/dlls/msvcrt/cppexcept.h +++ b/dlls/msvcrt/cppexcept.h @@ -135,12 +135,6 @@ typedef struct __cxx_exception_type void _CxxThrowException(exception*,const cxx_exception_type*); -/* get the vtable pointer for a C++ object */ -static inline const vtable_ptr *get_vtable( void *obj ) -{ - return *(const vtable_ptr **)obj; -} - static inline const char *dbgstr_type_info( const type_info *info ) { if (!info) return "{}";