summaryrefslogtreecommitdiff
path: root/Source/Kernel/SyscallManager/Res.ns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/SyscallManager/Res.ns.cpp')
-rw-r--r--Source/Kernel/SyscallManager/Res.ns.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Kernel/SyscallManager/Res.ns.cpp b/Source/Kernel/SyscallManager/Res.ns.cpp
index 1779a00..7902f2d 100644
--- a/Source/Kernel/SyscallManager/Res.ns.cpp
+++ b/Source/Kernel/SyscallManager/Res.ns.cpp
@@ -43,9 +43,9 @@ void unregisterRes(u32int id) {
u32int call(u32int ressource, u8int wat, u32int a, u32int b, u32int c, u32int d, u32int e) {
if (ressource == 0xFFFFFE) { //TODO : return ressource id for some stuff for current process
- if (a == VT_IFACE_OBJTYPE) return Task::currProcess()->getVirtualTerminal()->resId();
- if (a == PR_IFACE_OBJTYPE) return Task::currProcess()->resId();
- if (a == TH_IFACE_OBJTYPE) return Task::currThread()->resId();
+ if (a == VTIF_OBJTYPE) return Task::currProcess()->getVirtualTerminal()->resId();
+ if (a == PRIF_OBJTYPE) return Task::currProcess()->resId();
+ if (a == THIF_OBJTYPE) return Task::currThread()->resId();
return 0;
} else {
if (ressource > size or ressources[ressource] == 0) {