SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
emulators/gw-libretro/patches/patch-gwlua_functions_c
Normal file
18
emulators/gw-libretro/patches/patch-gwlua_functions_c
Normal file
|
@ -0,0 +1,18 @@
|
|||
Fix invalid memory issues.
|
||||
From upstream 9a924cea028f17d3be3499f1530abc14d9071983.
|
||||
|
||||
Index: gwlua/functions.c
|
||||
--- gwlua/functions.c.orig
|
||||
+++ gwlua/functions.c
|
||||
@@ -148,6 +148,11 @@ static int l_playsound( lua_State* L )
|
||||
break;
|
||||
}
|
||||
}
|
||||
+
|
||||
+ if ( channel == -1 )
|
||||
+ {
|
||||
+ return 0;
|
||||
+ }
|
||||
}
|
||||
else if ( channels[ channel ] != -1 )
|
||||
{
|
Loading…
Add table
Add a link
Reference in a new issue