a_villacis@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