Charles Dye
Super Moderator
- May
- 5,402
- 166
Staff member
It looks like QueryIsFile() does Bad Things in 30.00.20. I can't imagine why the function itself would have changed. RTL "improvement" ?
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!So how should a plugin author proceed?The QueryIsFile API changed to allow an optional second argument:
DLLExports int WINAPI QueryIsFile( LPCTSTR, CAtlString * strFound=NULL );
I didn't know the compiler would break old code on an optional new argument. For build 21 (which I'll post shortly) I named the new version QueryIsFileEx.
FWIW, I found this on StackOverflow (6 years old)
Code:BOOL FileExists(LPCTSTR szPath) { DWORD dwAttrib = GetFileAttributes(szPath); return (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)); }
I didn't know the compiler would break old code on an optional new argument. For build 21 (which I'll post shortly) I named the new version QueryIsFileEx.