Commit 05c6abdf authored by John van Groningen's avatar John van Groningen
Browse files

use static CleanString in getWindowsFileInfoC to prevent crash

if the garbage collector is called just before copying the string to
the Clean heap
parent 9623a325
...@@ -120,7 +120,7 @@ void getWindowsFileInfoC(int *pFileAttributes, ...@@ -120,7 +120,7 @@ void getWindowsFileInfoC(int *pFileAttributes,
FILETIME localFileTime; FILETIME localFileTime;
SYSTEMTIME localSystemTime; SYSTEMTIME localSystemTime;
int i; int i;
CleanStringVariable(fileName,ALT_LENGTH); static CleanStringVariable(fileName,ALT_LENGTH);
*pFileAttributes = gWFD.dwFileAttributes; *pFileAttributes = gWFD.dwFileAttributes;
FileTimeToLocalFileTime(&gWFD.ftCreationTime,&localFileTime); FileTimeToLocalFileTime(&gWFD.ftCreationTime,&localFileTime);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment