diff --git a/src/osd/modules/sound/direct_sound.c b/src/osd/modules/sound/direct_sound.c index bd30d730ee7..6cc0afea40f 100644 --- a/src/osd/modules/sound/direct_sound.c +++ b/src/osd/modules/sound/direct_sound.c @@ -279,7 +279,7 @@ HRESULT sound_direct_sound::dsound_init() SDL_SysWMinfo wminfo; SDL_VERSION(&wminfo.version); #if (SDLMAME_SDL2) - SDL_GetWindowWMInfo(sdl_window_list->sdl_window, &wminfo); + SDL_GetWindowWMInfo(sdl_window_list->m_sdl_window, &wminfo); result = IDirectSound_SetCooperativeLevel(dsound, wminfo.info.win.window, DSSCL_PRIORITY); #else SDL_GetWMInfo(&wminfo); diff --git a/src/osd/sdl/drawogl.c b/src/osd/sdl/drawogl.c index 61bf6ab867e..bfe383be56a 100644 --- a/src/osd/sdl/drawogl.c +++ b/src/osd/sdl/drawogl.c @@ -2462,7 +2462,7 @@ INLINE void copyline_yuy16_to_argb(UINT32 *dst, const UINT16 *src, int width, co int x; assert(xborderpix == 0 || xborderpix == 2); - assert(m_width % 2 == 0); + assert(width % 2 == 0); // palette (really RGB map) case if (palette != NULL)