Skip to content

Commit

Permalink
Merge pull request #460 from cracyc/getmodea
Browse files Browse the repository at this point in the history
fix MCIWNDM_GETMODEA
  • Loading branch information
otya128 authored Sep 15, 2019
2 parents 0a29764 + 636e541 commit f2a4402
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions msvideo/msvideo16.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,20 @@ static LRESULT WINAPI MCIWndProc16(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
switch (msg)
{
case MCIWNDM_SENDSTRINGA:
lparam = (ULONG_PTR)MapSL(lparam);
if (strstr(lparam, "update"))
{
char newstr[64];
int pos1, pos2, hdc16;
int count = sscanf(lparam, "%[a-z ]%n%d%n", newstr, &pos1, &hdc16, &pos2);
sprintf(newstr + pos1, " %u%s", HDC_32((HDC16)hdc16), lparam + pos2);

return CallWindowProcA(pMCIWndProc, hwnd, msg, wparam, newstr);
}
break;

case MCIWNDM_SETTIMEFORMATA:
case MCIWNDM_GETMODEA:
lparam = (ULONG_PTR)MapSL(lparam);
break;

Expand Down

0 comments on commit f2a4402

Please sign in to comment.