File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -375,15 +375,20 @@ Dee_dexataddr_compare(Dee_dexataddr_t const *__restrict lhs,
375375 * @return: false: Failure */
376376LOCAL WUNUSED NONNULL ((1 )) bool DCALL
377377Dee_dexataddr_init_fromaddr (Dee_dexataddr_t * __restrict self , void const * addr ) {
378+ #ifndef HAVE_Dee_dexataddr_t_SINGLE_IMPL
379+ bzero (self , sizeof (* self ));
380+ #endif /* !HAVE_Dee_dexataddr_t_SINGLE_IMPL */
378381#ifdef Dee_DEXATADDR_USE__GetModuleHandleExW
379- BOOL bOk ;
380- DBG_ALIGNMENT_DISABLE ();
381- bOk = GetModuleHandleExW (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
382- GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT ,
383- (LPCWSTR )addr , (HMODULE * )& self -> daa_ntModule );
384- DBG_ALIGNMENT_ENABLE ();
385- if (bOk )
386- return true;
382+ {
383+ BOOL bOk ;
384+ DBG_ALIGNMENT_DISABLE ();
385+ bOk = GetModuleHandleExW (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
386+ GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT ,
387+ (LPCWSTR )addr , (HMODULE * )& self -> daa_ntModule );
388+ DBG_ALIGNMENT_ENABLE ();
389+ if (bOk )
390+ return true;
391+ }
387392#endif /* Dee_DEXATADDR_USE__GetModuleHandleExW */
388393#ifdef Dee_DEXATADDR_USE__dlgethandle
389394 if ((lhs -> daa_dlhandle = (void * )dlgethandle (addr , DLGETHANDLE_FNORMAL )) != NULL )
You can’t perform that action at this time.
0 commit comments