--- a/kernel/eka/kernel/sexec.cpp Wed Aug 18 11:08:29 2010 +0300
+++ b/kernel/eka/kernel/sexec.cpp Thu Sep 02 21:54:16 2010 +0300
@@ -2223,10 +2223,10 @@
__KTRACE_OPT(KBOOT,Kern::Printf("File server thread registered"));
DThread* pT = TheCurrentThread;
DProcess* pP = pT->iOwningProcess;
+ if (K::TheFileServerProcess && K::TheFileServerProcess!=pP)
+ K::PanicCurrentThread(EAccessDenied);
pP->iFlags |= (KThreadFlagProcessCritical | KProcessFlagSystemPermanent);
pT->iFlags |= KThreadFlagSystemPermanent;
- if (K::TheFileServerProcess && K::TheFileServerProcess!=pP)
- K::PanicCurrentThread(EAccessDenied);
K::TheFileServerProcess=pP;
K::ThreadEnterCS();
pP->SetPriority(EPriorityFileServer);