git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Syscalls - Changed SysGetMessage to provide a buffer size
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
WM
/
ipc.c
diff --git
a/Usermode/Applications/axwin3_src/WM/ipc.c
b/Usermode/Applications/axwin3_src/WM/ipc.c
index
cbed7fd
..
1d4ac33
100644
(file)
--- a/
Usermode/Applications/axwin3_src/WM/ipc.c
+++ b/
Usermode/Applications/axwin3_src/WM/ipc.c
@@
-112,12
+112,12
@@
void IPC_HandleSelect(fd_set *set)
}
}
}
}
- while(SysGetMessage(NULL, NULL))
+ size_t len;
+ pid_t tid;
+ while( (len = SysGetMessage(&tid, 0, NULL)) )
{
{
- pid_t tid;
- int len = SysGetMessage(&tid, NULL);
char data[len];
char data[len];
- SysGetMessage(NULL, data);
+ SysGetMessage(NULL,
len,
data);
IPC_Handle(&gIPC_Type_SysMessage, &tid, len, (void*)data);
// _SysDebug("IPC_HandleSelect: Message handled");
IPC_Handle(&gIPC_Type_SysMessage, &tid, len, (void*)data);
// _SysDebug("IPC_HandleSelect: Message handled");
UCC
git Repository :: git.ucc.asn.au