How to add winmm.dll driver from within msacm32.dll?
Alex Villacís Lasso
a_villacis at palosanto.com
Mon Jun 13 12:19:34 CDT 2005
a_villacis at palosanto.com wrote:
>I tried the following change in acmDriverAddA() at
>dlls/msacm/driver.c:
>
> if (!hinstModule) {
> return MMSYSERR_INVALHANDLE;
> } else {
>#define WINE_DI_MAGIC 0x900F1B01
> unsigned int * d = (unsigned int *)hinstModule;
> if (HeapValidate(GetProcessHeap(), 0, d) && *d ==
>WINE_DI_MAGIC) {
> *phadid = (HACMDRIVERID) MSACM_RegisterDriver(NULL,
>NULL, hinstModule);
> } else {
> return MMSYSERR_INVALHANDLE;
> }
> }
>
>
I saw a mail in wine-devel mentioning the approach of abandoning the
dependency on DriverSendMessage(). I will try to implement it.
Meanwhile, this patch prevents the game from crashing, although it does
not add any functionality. However, it will try to report the
unsupported configuration as a guide for later implementation.
Alex Villacís Lasso
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-msacm-acmDriverAdd-precondition.patch
Type: text/x-patch
Size: 1585 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050613/0c30fe52/wine-msacm-acmDriverAdd-precondition.bin
More information about the wine-devel
mailing list