From c6e6e300b9fb95f345489fba52a4757b5f0d716e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 16 Jul 2016 23:16:30 +0200 Subject: [PATCH] CLeanup --- gfx/common/win32_common.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index 5d20caec86..c93ccc54a4 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -287,12 +287,14 @@ static int win32_drag_query_file(HWND hwnd, WPARAM wparam) { /*pick core that only exists and is bound to work. Ish. */ const core_info_t *info = (const core_info_t*)&core_info[0]; - task_push_content_load_default( - info->path, NULL, - &content_info, - CORE_TYPE_PLAIN, - CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_COMPANION_UI, - NULL, NULL); + + if (info) + task_push_content_load_default( + info->path, NULL, + &content_info, + CORE_TYPE_PLAIN, + CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_COMPANION_UI, + NULL, NULL); } else {