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