mirror of https://gitlab.com/nakst/essence
fix crash if desktopRequestPipe is not available
This commit is contained in:
parent
f224b596f0
commit
8ca087f804
|
@ -1590,11 +1590,13 @@ extern "C" void _start(EsProcessStartupInformation *_startupInformation) {
|
||||||
|
|
||||||
EsHeapFree(_data);
|
EsHeapFree(_data);
|
||||||
|
|
||||||
uint8_t m = DESKTOP_MSG_SYSTEM_CONFIGURATION_GET;
|
if (api.desktopRequestPipe) {
|
||||||
EsBuffer responseBuffer = { .canGrow = true };
|
uint8_t m = DESKTOP_MSG_SYSTEM_CONFIGURATION_GET;
|
||||||
MessageDesktop(&m, 1, ES_INVALID_HANDLE, &responseBuffer);
|
EsBuffer responseBuffer = { .canGrow = true };
|
||||||
SystemConfigurationLoad((char *) responseBuffer.out, responseBuffer.bytes);
|
MessageDesktop(&m, 1, ES_INVALID_HANDLE, &responseBuffer);
|
||||||
EsHeapFree(responseBuffer.out);
|
SystemConfigurationLoad((char *) responseBuffer.out, responseBuffer.bytes);
|
||||||
|
EsHeapFree(responseBuffer.out);
|
||||||
|
}
|
||||||
|
|
||||||
((void (*)()) api.startupInformation->applicationStartAddress)();
|
((void (*)()) api.startupInformation->applicationStartAddress)();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue