Skip to content

Crash on start on Wine #42

@chown2

Description

@chown2

Since somewhere from 0ada9e8, to work-around compile without these lines:

if (MH_CreateHookEx((LPVOID)SaveDrawScreenToPNG, &OnSaveDrawScreenToPNG, &SaveDrawScreenToPNG) != MH_OK)
{
std::cout << "Couldn't hook SaveDrawScreenToPNG" << std::endl;
}
if (MH_CreateHookEx((LPVOID)AddDrawingBuffer_PlayArea, &OnAddDrawingBuffer_PlayArea, &AddDrawingBuffer_PlayArea) != MH_OK)
{
std::cout << "Couldn't hook AddDrawingBuffer_PlayArea" << std::endl;
}
if (MH_CreateHookEx((LPVOID)AddDrawingBuffer_LN, &OnAddDrawingBuffer_LN, &AddDrawingBuffer_LN) != MH_OK)
{
std::cout << "Couldn't hook AddDrawingBuffer_LN" << std::endl;
}
if (MH_CreateHookEx((LPVOID)SetObjectString, &OnSetObjectString, &SetObjectString) != MH_OK)
{
std::cout << "Couldn't hook SetObjectString" << std::endl;
}

There were seemingly no related changes. Reverting the minhook update, MatVeiQaaa/minhook@5cc4d8b, doesn't help.

Unrelated: OnAddDrawingBuffer_PlayArea doesn't do anything besides calling the original function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions