X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fmsvc%2Fmsvc_libardour.cc;h=2efcb4b937347503b0c663527d9e8afe421f8c3e;hb=3a776b58ceadbf7c7d9a1ab4f691f18e3306316a;hp=bd186728ea87a8173d2901bffea724ddc90d163f;hpb=2e27e21d3a09889311e18a8efe11abcaa6d9c8b3;p=ardour.git diff --git a/libs/ardour/msvc/msvc_libardour.cc b/libs/ardour/msvc/msvc_libardour.cc index bd186728ea..2efcb4b937 100644 --- a/libs/ardour/msvc/msvc_libardour.cc +++ b/libs/ardour/msvc/msvc_libardour.cc @@ -83,7 +83,7 @@ namespace ARDOUR { LIBARDOUR_API int LIBARDOUR_APICALLTYPE symlink(const char *dest, const char *shortcut, const char *working_directory /*= NULL */) { -IShellLinkA *pISL = NULL; +IShellLinkA *pISL = NULL; IPersistFile *ppf = NULL; int ret = (-1); @@ -202,7 +202,7 @@ int ret = (-1); LIBARDOUR_API int LIBARDOUR_APICALLTYPE readlink(const char *__restrict shortcut, char *__restrict buf, size_t bufsize) { -IShellLinkA *pISL = NULL; +IShellLinkA *pISL = NULL; IPersistFile *ppf = NULL; int ret = (-1); @@ -237,7 +237,7 @@ int ret = (-1); // Read the target information from the shortcut object if (S_OK == (pISL->GetPath (target_path, _MAX_PATH, NULL, SLGP_UNCPRIORITY))) { - strncpy(buf, target_path, bufsize); + strncpy(buf, target_path, bufsize); ret = ((ret = strlen(buf)) > bufsize) ? bufsize : ret; // _set_errno(0); }