Skip to content

Commit

Permalink
Rerolled SSE3 removal from x86 build
Browse files Browse the repository at this point in the history
  • Loading branch information
win32ss committed Jul 18, 2023
1 parent c1cb06b commit 971871f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build/config/win/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ config("compiler") {
# microarchitecture. MSVC only supports a subset of architectures, and the
# next step after SSE2 will be AVX.
if (current_cpu == "x86" || current_cpu == "x64") {
cflags += [ "-msse3" ]
if (target_cpu == "x64") {
cflags += [ "-msse3" ]
}
}

# Enable ANSI escape codes if something emulating them is around (cmd.exe
Expand Down
4 changes: 2 additions & 2 deletions chrome/chrome_elf/hook_util/hook_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "chrome/chrome_elf/nt_registry/nt_registry.h" // utils
#include "sandbox/win/src/interception_internal.h"
#include "sandbox/win/src/internal_types.h"
#include "sandbox/win/src/sandbox_utils.h"
#include "sandbox/win/src/service_resolver.h"

namespace {
Expand Down Expand Up @@ -218,7 +217,8 @@ sandbox::ServiceResolverThunk* HookSystemService(bool relaxed) {
// handling one like it does in 32-bit versions).
thunk = new sandbox::ServiceResolverThunk(current_process, relaxed);
#else
if (nt::IsCurrentProcWow64()) {
BOOL is_wow64 = FALSE;
if (::IsWow64Process(::GetCurrentProcess(), &is_wow64) && is_wow64) {
if (::IsWindows10OrGreater())
thunk = new sandbox::Wow64W10ResolverThunk(current_process, relaxed);
else if (::IsWindows8OrGreater())
Expand Down

0 comments on commit 971871f

Please sign in to comment.