Actions:
|
2014-09-02 12:15 AEST by Arthur Barrett - cvsflt.c(7083 & 7087) : warning 6305: (PFD)Potential mismatch between sizeof and countof quantities.
Found in function 'CvsAddInuseFile'
details:
http://msdn.microsoft.com/en-us/library/aeh4k13s.aspx
solution, change:
RtlStringCbLengthW(FileName,MAX_PATH*sizeof(WCHAR),&Len);
Len+=sizeof(WCHAR);
RtlStringCbLengthW(TempFileName,MAX_PATH*sizeof(WCHAR),&Len2);
Len2+=sizeof(WCHAR);
to:
RtlStringCbLengthW(FileName,MAX_PATH*sizeof(WCHAR),&Len);
Len+=1; // sizeof(WCHAR);
RtlStringCbLengthW(TempFileName,MAX_PATH*sizeof(WCHAR),&Len2);
Len2+=1; // sizeof(WCHAR);
warning 20051 : PREfast - Error processing 'cvsflt.c' : error C2118: negative subscript (try ' oacr log
root:x86 ' for details)
File path: d:\winddk\7600.16385.1\inc\ddk\ntifs.h
Function:
Line: 9560
ntifs.h(9560) : warning 20051: PREfast - Error processing 'cvsflt.c' : error C2118: negative subscript (try '
oacr log root:x86 ' for details)
9560
notes:
http://msdn.microsoft.com/en-us/library/16w19205.aspx
Since the file in error is actually a part of the DDK, I'm not sure I can fix this… It looks like a MS bug.
Very little information available from Google.
It looks like the WinDDK version 6001.18001 was named Windows Server 2008 WDK SP1.
WDK_6001_18001.iso, ca. 650MB
Release Date: WDK SP1 for Windows Server 2008 SP1 Release Date 10/23/2008
Windows Driver Kit Version 7.1.0 (GRMWDK_EN_7600_1.ISO)
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11800
Use it to create drivers for Windows 7, Windows Vista, Windows XP, Windows Server 2008 R2, Windows
Server 2008, and Windows Server 2003.
CVS Suite 2010 doesn't need to support anything older than XP/2003 - so the updated WinDDK may be
the best route (probably require new testing of cvsflt though…).
The absolute latest WDK (DDK) is 8.1:
http://www.microsoft.com/en-us/download/details.aspx?id=42273
But that only supports Visual Studio 2013 and quite recent operating systems Windows 8.1, Windows
Server 2012 R2, Windows 8, Windows Server 2012,Windows 7, Windows Server 2008 R2 |