oops, fix another crash. I guess the "pass pointer by reference and maybe automatically reallocate" idiom is error-prone.

This commit is contained in:
Glenn Maynard
2005-10-29 21:50:26 +00:00
parent 3bf8373588
commit 9b7346e607
@@ -13,7 +13,7 @@
static HBITMAP g_hBitmap = NULL;
/* Load a RageSurface into a GDI surface. */
static HBITMAP LoadWin32Surface( RageSurface *s )
static HBITMAP LoadWin32Surface( RageSurface *&s )
{
RageSurfaceUtils::ConvertSurface( s, s->w, s->h, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0 );
HBITMAP bitmap = CreateCompatibleBitmap( GetDC(NULL), s->w, s->h );