diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-01-23 22:02:20 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-01-23 22:02:20 +0100 |
| commit | 511a7d24488b64f9e8aa7ed98ed26425c4b1f06e (patch) | |
| tree | 73c4df63a45794934134ad5867b3e7688e6ce386 /src | |
| parent | b6c172865b35e5a3318c80dae344f7f554cfbe9e (diff) | |
| download | box64-511a7d24488b64f9e8aa7ed98ed26425c4b1f06e.tar.gz box64-511a7d24488b64f9e8aa7ed98ed26425c4b1f06e.zip | |
Fix(?) of the better wrapping for g_option_context_add_main_entries
Diffstat (limited to 'src')
| -rwxr-xr-x | src/wrapped/wrappedglib2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrapped/wrappedglib2.c b/src/wrapped/wrappedglib2.c index 457ccac2..f9ec538c 100755 --- a/src/wrapped/wrappedglib2.c +++ b/src/wrapped/wrappedglib2.c @@ -1434,7 +1434,7 @@ EXPORT void my_g_option_context_add_main_entries(x64emu_t* emu, void* context, m { glib2_my_t *my = (glib2_my_t*)my_lib->priv.w.p2; my_GOptionEntry_t* p = entries; - while (p) { + while (p->long_name) { // wrap Callbacks if (p->arg == 3) p->arg_data = findGOptionArgFct(p->arg_data); @@ -1442,7 +1442,7 @@ EXPORT void my_g_option_context_add_main_entries(x64emu_t* emu, void* context, m } my->g_option_context_add_main_entries(context, entries, domain); p = entries; - while (p) { + while (p->long_name) { // unwrap Callbacks if (p->arg == 3) p->arg_data = reverseGOptionArgFct(p->arg_data); |