IsFileLocked issue
Hi Stu
Thanks for the plugin, it is very good and helpful.
Anyway, while testing it in my installer I've found one bug. It treat file as blocked in the case when this file has non-existent directories within the full path. This can be easily fixed by replacing this piece of code at line 2050 in LockedList.cpp
Dmitry
Hi Stu
Thanks for the plugin, it is very good and helpful.
Anyway, while testing it in my installer I've found one bug. It treat file as blocked in the case when this file has non-existent directories within the full path. This can be easily fixed by replacing this piece of code at line 2050 in LockedList.cpp
withcode:
if (GetLastError() != ERROR_FILE_NOT_FOUND)
fLocked = TRUE;
Also it would be great to replacecode:
if ((err != ERROR_FILE_NOT_FOUND) && (err != ERROR_PATH_NOT_FOUND))
fLocked = TRUE;
tocode:
#include "afxres.h"
in LockedList.rc to be able to compile with MSVC Express edition.code:
#include <windows.h>
Dmitry
Comment