dll: fuse: ReadDirectory: log invalid directory entries

This commit is contained in:
Bill Zissimopoulos 2020-04-15 15:07:01 -07:00
parent 9066338220
commit e71aea8ad7
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -1738,9 +1738,9 @@ static VOID fsp_fuse_intf_LogBadDirInfo(
const char *PosixPath, const char *PosixName, const char *Message)
{
static LONG Count = 0;
LONG NewCount;
ULONG NewCount;
NewCount = InterlockedIncrement(&Count);
NewCount = (ULONG)InterlockedIncrement(&Count);
/* log only the first 5 such warnings to avoid warning overload */
if (5 >= NewCount)