summaryrefslogtreecommitdiff
path: root/utils/KillTheDoctor
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-06 04:27:52 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-06 04:27:52 +0000
commita1d942fb70bfb76a3e6e2e2104b7ddecdcaf1244 (patch)
tree3b30314ca65fa66a2492d554f656f4d345c49163 /utils/KillTheDoctor
parente99bbd9ac3cc7ba2615c9b800a002e47c8e13991 (diff)
downloadllvm-a1d942fb70bfb76a3e6e2e2104b7ddecdcaf1244.tar.gz
llvm-a1d942fb70bfb76a3e6e2e2104b7ddecdcaf1244.tar.bz2
llvm-a1d942fb70bfb76a3e6e2e2104b7ddecdcaf1244.tar.xz
KillTheDoctor: Fix spelling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/KillTheDoctor')
-rw-r--r--utils/KillTheDoctor/KillTheDoctor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/KillTheDoctor/KillTheDoctor.cpp b/utils/KillTheDoctor/KillTheDoctor.cpp
index e24553af19..282cfda8a6 100644
--- a/utils/KillTheDoctor/KillTheDoctor.cpp
+++ b/utils/KillTheDoctor/KillTheDoctor.cpp
@@ -16,14 +16,14 @@
// (and hopefully tells someone about it).
//
// This also provides another really hacky method to prevent assert dialog boxes
-// from poping up. When --no-user32 is passed, if any process loads user32.dll,
+// from popping up. When --no-user32 is passed, if any process loads user32.dll,
// we assume it is trying to call MessageBoxEx and terminate it. The proper way
// to do this would be to actually set a break point, but there's quite a bit
// of code involved to get the address of MessageBoxEx in the remote process's
// address space due to Address space layout randomization (ASLR). This can be
// added if it's ever actually needed.
//
-// If the subprocess exits for any reason other than sucessful termination, -1
+// If the subprocess exits for any reason other than successful termination, -1
// is returned. If the process exits normally the value it returned is returned.
//
// I hate Windows.
@@ -387,7 +387,7 @@ int main(int argc, char **argv) {
StartupInfo.cb = sizeof(StartupInfo);
std::memset(&ProcessInfo, 0, sizeof(ProcessInfo));
- // Set error mode to not display any message boxes. The child process inherets
+ // Set error mode to not display any message boxes. The child process inherits
// this.
::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
::_set_error_mode(_OUT_TO_STDERR);
@@ -442,7 +442,7 @@ int main(int argc, char **argv) {
a.HighPart = KernelTime.dwHighDateTime;
b.LowPart = UserTime.dwLowDateTime;
b.HighPart = UserTime.dwHighDateTime;
- // Convert 100-nanosecond units to miliseconds.
+ // Convert 100-nanosecond units to milliseconds.
uint64_t TotalTimeMiliseconds = (a.QuadPart + b.QuadPart) / 10000;
// Handle the case where the process has been running for more than 49
// days.
@@ -494,7 +494,7 @@ int main(int argc, char **argv) {
if (TraceExecution)
errs() << ToolName << ": Debug Event: EXIT_PROCESS_DEBUG_EVENT\n";
- // If this is the process we origionally created, exit with its exit
+ // If this is the process we originally created, exit with its exit
// code.
if (DebugEvent.dwProcessId == ProcessInfo.dwProcessId)
return DebugEvent.u.ExitProcess.dwExitCode;
@@ -534,7 +534,7 @@ int main(int argc, char **argv) {
errs() << ToolName << ": user32.dll loaded!\n";
errs().indent(ToolName.size())
<< ": This probably means that assert was called. Closing "
- "program to prevent message box from poping up.\n";
+ "program to prevent message box from popping up.\n";
dwContinueStatus = DBG_CONTINUE;
::TerminateProcess(ProcessIDToHandle[DebugEvent.dwProcessId], -1);
return -1;