Skip to content

Simplify ProgramFilesX86Cache::TryProgramFilesPath - #1131

Merged
hiroyuki-komatsu merged 1 commit into
google:masterfrom
yukawa:simplify_ProgramFilesX86Cache
Dec 4, 2024
Merged

hiroyuki-komatsu merged 1 commit into
google:masterfrom
yukawa:simplify_ProgramFilesX86Cache

Conversation

@yukawa

@yukawa yukawa commented Dec 3, 2024

Copy link
Copy Markdown
Collaborator

Description

The current implementation of ProgramFilesX86Cache::TryProgramFilesPath is unnecessarily complex. We can always use CSIDL_PROGRAM_FILESX86 not only within 64-bit processes but also within 32-bit processes.

There must be no observable behavior change in this commit.

This is a preparation to build Mozc as an ARM64 executable (#1130).

Issue IDs

Steps to test new behaviors (if any)

A clear and concise description about how to verify new behaviors (if any).

  • OS: Windows 11 23H2
  • Steps:
    1. Build and install Mozc64.msi
    2. Confirm you can type with Mozc on both 32-bit app and 64-bit app.

The current implementation of

  ProgramFilesX86Cache::TryProgramFilesPath

is unnecessarily complex. We can always use CSIDL_PROGRAM_FILESX86 not
only within 64-bit processes but also within 32-bit processes.

There must be no observable behavior change in this commit.

This is a preparation to build Mozc as an ARM64 executable (google#1130).

See google#1086 for how and when we can stop relying on this historical
installation location.
@hiroyuki-komatsu
hiroyuki-komatsu merged commit 8e7a307 into google:master Dec 4, 2024
@hiroyuki-komatsu

Copy link
Copy Markdown
Collaborator

We have merged your PR.
Thank you for the contribution!

@yukawa
yukawa deleted the simplify_ProgramFilesX86Cache branch December 4, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants