diff options
Diffstat (limited to 'dev/sci')
| -rw-r--r-- | dev/sci/sci_base.hxx | 4 | ||||
| -rw-r--r-- | dev/sci/sci_lpc.hxx | 61 | ||||
| -rw-r--r-- | dev/sci/src/sci_mm.cxx | 8 | ||||
| -rw-r--r-- | dev/sci/xpcom_core.hxx | 2 |
4 files changed, 37 insertions, 38 deletions
diff --git a/dev/sci/sci_base.hxx b/dev/sci/sci_base.hxx index 58a31837..7eedbb8a 100644 --- a/dev/sci/sci_base.hxx +++ b/dev/sci/sci_base.hxx @@ -216,7 +216,7 @@ IMPORT_C Void MmSetHeapFlags(_Input VoidPtr heap, _Input UInt32 flags); /// @brief Change protection flags of a memory region.
IMPORT_C UInt32 MmGetHeapFlags(_Input VoidPtr heap);
-/// @brief Fill memory region with CRC32.
+/// @brief Fill memory region with CRC32.
IMPORT_C UInt32 MmFillCRC32Heap(_Input VoidPtr heap);
/// @brief Copy memory region.
@@ -248,7 +248,7 @@ IMPORT_C Void ThrExitMainThread(_Input SInt32 exit_code); /// @param exit_code the exit code.
IMPORT_C Void ThrExitThread(_Input ThreadObject thread, _Input SInt32 exit_code);
-typedef Void(*ThreadProc)(Void);
+typedef Void (*ThreadProc)(Void);
/// @brief Create a thread.
/// @param procedure the thread procedure.
diff --git a/dev/sci/sci_lpc.hxx b/dev/sci/sci_lpc.hxx index c8fb0b55..99b9ed9d 100644 --- a/dev/sci/sci_lpc.hxx +++ b/dev/sci/sci_lpc.hxx @@ -12,38 +12,37 @@ typedef SInt32 ErrObject; -inline constexpr ErrObject kErrorSuccess = 0; -inline constexpr ErrObject kErrorExecutable = 33; -inline constexpr ErrObject kErrorExecutableLib = 34; -inline constexpr ErrObject kErrorFileNotFound = 35; -inline constexpr ErrObject kErrorDirectoryNotFound = 36; -inline constexpr ErrObject kErrorDiskReadOnly = 37; -inline constexpr ErrObject kErrorDiskIsFull = 38; -inline constexpr ErrObject kErrorProcessFault = 39; -inline constexpr ErrObject kErrorSocketHangUp = 40; +inline constexpr ErrObject kErrorSuccess = 0; +inline constexpr ErrObject kErrorExecutable = 33; +inline constexpr ErrObject kErrorExecutableLib = 34; +inline constexpr ErrObject kErrorFileNotFound = 35; +inline constexpr ErrObject kErrorDirectoryNotFound = 36; +inline constexpr ErrObject kErrorDiskReadOnly = 37; +inline constexpr ErrObject kErrorDiskIsFull = 38; +inline constexpr ErrObject kErrorProcessFault = 39; +inline constexpr ErrObject kErrorSocketHangUp = 40; inline constexpr ErrObject kErrorThreadLocalStorage = 41; -inline constexpr ErrObject kErrorMath = 42; -inline constexpr ErrObject kErrorNoNetwork = 43; -inline constexpr ErrObject kErrorHeapOutOfMemory = 44; -inline constexpr ErrObject kErrorNoSuchDisk = 45; -inline constexpr ErrObject kErrorFileExists = 46; -inline constexpr ErrObject kErrorFormatFailed = 47; -inline constexpr ErrObject kErrorNetworkTimeout = 48; -inline constexpr ErrObject kErrorInternal = 49; -inline constexpr ErrObject kErrorForkAlreadyExists = 50; -inline constexpr ErrObject kErrorOutOfTeamSlot = 51; -inline constexpr ErrObject kErrorHeapNotPresent = 52; -inline constexpr ErrObject kErrorNoEntrypoint = 53; -inline constexpr ErrObject kErrorDiskIsCorrupted = 54; -inline constexpr ErrObject kErrorDisk = 55; -inline constexpr ErrObject kErrorInvalidData = 56; -inline constexpr ErrObject kErrorAsync = 57; -inline constexpr ErrObject kErrorNonBlocking = 58; -inline constexpr ErrObject kErrorIPC = 59; -inline constexpr ErrObject kErrorSign = 60; -inline constexpr ErrObject kErrorInvalidCreds = 61; -inline constexpr ErrObject kErrorUnimplemented = 0; +inline constexpr ErrObject kErrorMath = 42; +inline constexpr ErrObject kErrorNoNetwork = 43; +inline constexpr ErrObject kErrorHeapOutOfMemory = 44; +inline constexpr ErrObject kErrorNoSuchDisk = 45; +inline constexpr ErrObject kErrorFileExists = 46; +inline constexpr ErrObject kErrorFormatFailed = 47; +inline constexpr ErrObject kErrorNetworkTimeout = 48; +inline constexpr ErrObject kErrorInternal = 49; +inline constexpr ErrObject kErrorForkAlreadyExists = 50; +inline constexpr ErrObject kErrorOutOfTeamSlot = 51; +inline constexpr ErrObject kErrorHeapNotPresent = 52; +inline constexpr ErrObject kErrorNoEntrypoint = 53; +inline constexpr ErrObject kErrorDiskIsCorrupted = 54; +inline constexpr ErrObject kErrorDisk = 55; +inline constexpr ErrObject kErrorInvalidData = 56; +inline constexpr ErrObject kErrorAsync = 57; +inline constexpr ErrObject kErrorNonBlocking = 58; +inline constexpr ErrObject kErrorIPC = 59; +inline constexpr ErrObject kErrorSign = 60; +inline constexpr ErrObject kErrorInvalidCreds = 61; +inline constexpr ErrObject kErrorUnimplemented = 0; /// @brief The last error reported by the system to the process. IMPORT_C ErrObject kLastError; - diff --git a/dev/sci/src/sci_mm.cxx b/dev/sci/src/sci_mm.cxx index eff54501..34bf4936 100644 --- a/dev/sci/src/sci_mm.cxx +++ b/dev/sci/src/sci_mm.cxx @@ -10,8 +10,8 @@ /// @brief Base Memory Manager functions for SCI.dll
/// @brief Debug error prompt, when a function misbehaves.
-/// @param msg
-/// @return
+/// @param msg
+/// @return
IMPORT_C Void __RtlRaiseSoftError(const char* msg);
/// @brief Copy memory region.
@@ -29,7 +29,7 @@ IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input Si {
((Char*)dest)[i] = ((Char*)src)[i];
}
-
+
return dest;
}
@@ -47,6 +47,6 @@ IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input SizeT len, _Input UInt {
((Char*)dest)[i] = value;
}
-
+
return dest;
}
diff --git a/dev/sci/xpcom_core.hxx b/dev/sci/xpcom_core.hxx index ef82733e..fd289091 100644 --- a/dev/sci/xpcom_core.hxx +++ b/dev/sci/xpcom_core.hxx @@ -20,7 +20,7 @@ Purpose: Base code of XPCOM. protocol IUnknown; // Refrenced from an IDB entry.
protocol ICLSID; // From the IDB, the constructor of the object, e.g: TextUCLSID.
object UUID;
-object IStr;
+object IStr;
/// @brief Unknown XPCOM interface
protocol clsid("d7c144b6-0792-44b8-b06b-02b227b547df") IUnknown
|
