mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
use get_sem_key_for_layers instead of get_sem_key
This commit is contained in:
+1
-6
@@ -282,11 +282,6 @@ BOOL __mg_is_valid_layer (MG_Layer* layer)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
inline static key_t get_sem_key (void)
|
||||
{
|
||||
return (key_t)(IPC_KEY_BASE + 0x03);
|
||||
}
|
||||
|
||||
static void delete_zi_sem (void)
|
||||
{
|
||||
union semun ignored;
|
||||
@@ -310,7 +305,7 @@ int __mg_init_layers ()
|
||||
|
||||
memset (sem_usage, 0xFF, sizeof (sem_usage));
|
||||
|
||||
if ((sem_key = get_sem_key ()) == -1) {
|
||||
if ((sem_key = get_sem_key_for_layers ()) == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user