reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 02a89c5f8db2694187c2059a93f3d739a4ad47d3
parent 04f0ce1a9ad84a6a042a2faf2cc38c9d75149ce9
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun,  1 Oct 2017 16:51:25 -0700

win32: fix crash when opening links (v1.2rc1 regression)

Diffstat:
Msrc/win32.cpp | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/win32.cpp b/src/win32.cpp @@ -70,7 +70,8 @@ void Win32::setWindowText(const HWND handle, const char *text) void Win32::shellExecute(const char *what, const char *arg) { - ShellExecute(nullptr, L("open"), widen_cstr(what), widen_cstr(arg), nullptr, SW_SHOW); + ShellExecute(nullptr, L("open"), widen_cstr(what), + arg ? widen_cstr(arg) : nullptr, nullptr, SW_SHOW); } HANDLE Win32::globalCopy(const string &text)