diff options
Diffstat (limited to 'sandbox/src/sandbox_nt_util.cc')
-rw-r--r-- | sandbox/src/sandbox_nt_util.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sandbox/src/sandbox_nt_util.cc b/sandbox/src/sandbox_nt_util.cc index ae5556e..e8a56a7 100644 --- a/sandbox/src/sandbox_nt_util.cc +++ b/sandbox/src/sandbox_nt_util.cc @@ -301,7 +301,6 @@ UNICODE_STRING* GetImageInfoFromModule(HMODULE module, uint32* flags) { if (headers->OptionalHeader.SizeOfCode) *flags |= MODULE_HAS_CODE; } - } while (false); } __except(EXCEPTION_EXECUTE_HANDLER) { } @@ -349,7 +348,7 @@ UNICODE_STRING* ExtractModuleName(const UNICODE_STRING* module_path) { int start_pos = module_path->Length / sizeof(wchar_t) - 1; int ix = start_pos; - for(; ix >= 0; --ix) { + for (; ix >= 0; --ix) { if (module_path->Buffer[ix] == L'\\') { sep = &module_path->Buffer[ix]; break; @@ -361,7 +360,7 @@ UNICODE_STRING* ExtractModuleName(const UNICODE_STRING* module_path) { return NULL; // No path separator found. Use the entire name. - if ((ix == 0) && !sep) { + if (!sep) { sep = &module_path->Buffer[-1]; } |