Skip to content

Commit f2064e6

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents 8b93296 + a49a9d4 commit f2064e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scip/reader_nl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3009,7 +3009,8 @@ SCIP_DECL_READERWRITE(readerWriteNl)
30093009
/* construct a temporary directory in /tmp/scipnlwrite-XXXXXX */
30103010
#ifdef _WIN32
30113011
TCHAR systemtmp[MAX_PATH + 1];
3012-
if( GetTempPath(MAX_PATH + 1, systemtmp) != ERROR_SUCCESS )
3012+
DWORD gettemprc = GetTempPath2A(MAX_PATH + 1, systemtmp);
3013+
if( gettemprc == 0 || gettemprc > MAX_PATH + 1 )
30133014
{
30143015
SCIPerrorMessage("Cannot get name of directory for temporary files: error %d\n", errno);
30153016
rc = SCIP_FILECREATEERROR;

0 commit comments

Comments
 (0)