mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 07:47:04 +00:00
parent
00967cbb8a
commit
41d8da1cea
1 changed files with 2 additions and 1 deletions
|
@ -1640,7 +1640,8 @@ static void dataDeviceHandleDataOffer(void* userData,
|
|||
struct wl_data_offer* offer)
|
||||
{
|
||||
_GLFWofferWayland* offers =
|
||||
_glfw_realloc(_glfw.wl.offers, _glfw.wl.offerCount + 1);
|
||||
_glfw_realloc(_glfw.wl.offers,
|
||||
sizeof(_GLFWofferWayland) * (_glfw.wl.offerCount + 1));
|
||||
if (!offers)
|
||||
{
|
||||
_glfwInputError(GLFW_OUT_OF_MEMORY, NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue