Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wine/wow64/wowbox64.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ NTSTATUS WINAPI BTCpuProcessInit(void)
#undef STATIC_ASSERT

LoadEnvVariables();
InitializeEnvFiles();
InitializeSystemInfo();

@ptitSeb ptitSeb Aug 24, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue with this ordering is that InitialiazeSystemInfo() might depends on some of the env. var. in InitializeEnvFiles() (for cpu cores counts & rdtsc options)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I just overthinked this too much...

The order of inits was correct, custommem init wasn't. I'll fix it up later.

init_custommem_helper(&box64_context);
InitializeEnvFiles();

if (!BOX64ENV(nobanner)) PrintBox64Version(1);
if (DetectHostCpuFeatures())
Expand All @@ -272,7 +273,6 @@ NTSTATUS WINAPI BTCpuProcessInit(void)
bopcode[0] = 0x2ecd;
unxcode[0] = 0x2ecd;

init_custommem_helper(&box64_context);
box64_context.db_sizes = rbtree_init("db_sizes");

if ((ULONG_PTR)bopcode >> 32 || (ULONG_PTR)unxcode >> 32) {
Expand Down
Loading