Skip to content
Snippets Groups Projects
Commit 88aa7c53 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2992 51575b47-30f0-44d4-a5cc-537603b46e54
parent 65951d06
No related branches found
No related tags found
No related merge requests found
......@@ -102,14 +102,14 @@ void run_core(core_boot_type *core_def, int argc, char **argv)
exit(EXIT_FAILURE);
}
te4main = GetProcAddress(handle, "te4main");
*(void **) (&te4main) = GetProcAddress(handle, "te4main");
if (te4main == NULL) {
fprintf(stderr, "Error binding to core %d (%s): %d\n", core_def->corenum, core, GetLastError());
exit(EXIT_FAILURE);
}
// Run the core
corenum = te4main(argc, argv);
te4main(argc, argv, core_def);
FreeLibrary(handle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment