Open forum for end-user questions about Wine
. Before asking questions, check out the Wiki
as a first step.
- Posts: 2
- Joined: Sat Dec 12, 2020 2:42 pm
I have an application that requires certain functions (for example "midiInGetDevCaps()
") to be patched because Wine's implementation does not return the values expected by the application:
Code: Select all
int patched_midiInGetDevCaps(int dev, MIDIINCAPS *caps, int len)
int result = original_midiInGetDevCaps(dev, caps, len);
if(...) /* Check if the data must be patched */
caps->wPid = ... /* Patch the data */
What is the best way to perform such kind of patches?
- Level 5
- Posts: 499
- Joined: Thu Dec 24, 2009 11:00 am
It may be easiest to just modify wine and build it yourself. It may be possible to "shim" some dll that only modifies certain calls but that seems... I don't know really.
That's assuming that the program you're trying to run is broken somehow. If it's wine that's doing something wrong you would probably want to file a bug.