-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some wrapping error #771
Conversation
src/wrapped/wrappedlibjpeg.c
Outdated
@@ -309,6 +352,13 @@ EXPORT void* my_jpeg_std_error(x86emu_t* emu, void* errmgr) | |||
|
|||
wrapErrorMgr(my_lib->w.bridge, ret); | |||
|
|||
my->jpeg_std_error(&native_err_mgr); | |||
ret->error_exit = (void*)AddBridge(my_lib->w.bridge, vFp, native_error_exit, 0, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's probably better to use AddCheckBridge
here, to avoid adding multiple time the same value?
src/include/bridge.h
Outdated
@@ -12,6 +13,7 @@ void FreeBridge(bridge_t** bridge); | |||
|
|||
uintptr_t AddBridge(bridge_t* bridge, wrapper_t w, void* fnc, int N, const char* name); | |||
uintptr_t CheckBridged(bridge_t* bridge, void* fnc); | |||
bool IsBridge(void* func); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's nitspicking, but can we avoid the use of bool
? a simple int
will do just fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please just use int, no need for c++ like feature like bool.
And use AddCheckBridge
instead of AddBridge
to avoid duplication.
Looks good appart from that, thanks :)
Ok, I will improve it |
Thanks :) |
No description provided.