Skip to content

Commit

Permalink
FIx order of arguments to GetTempPath
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Apr 25, 2017
1 parent 9fb4137 commit 7614a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/Utils.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 7614a53

Please sign in to comment.