mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +08:00
print dlopen error
This commit is contained in:
parent
496eec17a1
commit
54d041701c
@ -9,7 +9,11 @@ bool gIsConnectionManager = false;
|
||||
bool flutter_rustdesk_core_main() {
|
||||
void* librustdesk = dlopen(RUSTDESK_LIB_PATH, RTLD_LAZY);
|
||||
if (!librustdesk) {
|
||||
fprintf(stderr,"load librustdesk.so failed\n");
|
||||
fprintf(stderr,"load librustdesk.so failed\n");
|
||||
char* error;
|
||||
if ((error = dlerror()) != nullptr) {
|
||||
fprintf(stderr, "%s", error);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
auto core_main = (RustDeskCoreMain) dlsym(librustdesk,"rustdesk_core_main");
|
||||
|
Loading…
Reference in New Issue
Block a user