We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b93296 + a49a9d4 commit f2064e6Copy full SHA for f2064e6
src/scip/reader_nl.cpp
@@ -3009,7 +3009,8 @@ SCIP_DECL_READERWRITE(readerWriteNl)
3009
/* construct a temporary directory in /tmp/scipnlwrite-XXXXXX */
3010
#ifdef _WIN32
3011
TCHAR systemtmp[MAX_PATH + 1];
3012
- if( GetTempPath(MAX_PATH + 1, systemtmp) != ERROR_SUCCESS )
+ DWORD gettemprc = GetTempPath2A(MAX_PATH + 1, systemtmp);
3013
+ if( gettemprc == 0 || gettemprc > MAX_PATH + 1 )
3014
{
3015
SCIPerrorMessage("Cannot get name of directory for temporary files: error %d\n", errno);
3016
rc = SCIP_FILECREATEERROR;
0 commit comments