From 7614a53ccc20bebf4f0f258b02fe5d93c6063878 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 25 Apr 2017 21:43:39 +0100 Subject: [PATCH] FIx order of arguments to GetTempPath --- lib/common/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/Utils.cpp b/lib/common/Utils.cpp index 3a52892da..f73e0c2c7 100644 --- a/lib/common/Utils.cpp +++ b/lib/common/Utils.cpp @@ -366,7 +366,7 @@ std::string GetTempDirPath() { #ifdef WIN32 char buffer[PATH_MAX+1]; - int len = GetTempPath(buffer, sizeof(buffer)); + int len = GetTempPath(sizeof(buffer), buffer); if(len > sizeof(buffer)) { THROW_EXCEPTION(CommonException, TempDirPathTooLong);