mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 15:58:16 +00:00
error: Copy location information in error_copy()
Commit 1e9b65bb forgot to propagate source information to copied errors. Backports commit 88e2ce291595ed8f12636b40523fdb215a9d3374 from qemu
This commit is contained in:
parent
011861cd0e
commit
b78bb417eb
1 changed files with 3 additions and 0 deletions
|
@ -123,6 +123,9 @@ Error *error_copy(const Error *err)
|
|||
err_new = g_malloc0(sizeof(*err));
|
||||
err_new->msg = g_strdup(err->msg);
|
||||
err_new->err_class = err->err_class;
|
||||
err_new->src = err->src;
|
||||
err_new->line = err->line;
|
||||
err_new->func = err->func;
|
||||
|
||||
return err_new;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue