restore old calls of kernel_alloc_z_order_info

This commit is contained in:
Vincent Wei
2020-01-14 12:16:12 +08:00
parent 44b7420a61
commit 8fa5253b6a
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -102,13 +102,14 @@ static BOOL InitWndManagementInfo (void)
BOOL mg_InitDesktop (void)
{
int ret;
RECT rcScr = GetScreenRect();
/*
* Init ZOrderInfo here.
*/
__mg_zorder_info = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (__mg_zorder_info == NULL) {
ret = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (ret < 0) {
_WRN_PRINTF ("KERNEL>Desktop: Can not initialize ZOrderInfo!\n");
return FALSE;
}
+4 -2
View File
@@ -110,11 +110,13 @@ static BOOL InitWndManagementInfo (void)
BOOL mg_InitDesktop (void)
{
int ret;
/*
* Init ZOrderInfo here.
*/
__mg_zorder_info = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (__mg_zorder_info == NULL) {
ret = kernel_alloc_z_order_info (DEF_NR_TOPMOSTS, DEF_NR_NORMALS);
if (ret < 0) {
_WRN_PRINTF ("KERNEL>Desktop: Can not initialize ZOrderInfo!\n");
return FALSE;
}