Old 23rd August 2010, 02:47   #1
ukreator
Junior Member
 
Join Date: Aug 2010
Location: Omsk, Russia
Posts: 1
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

code:

if (GetLastError() != ERROR_FILE_NOT_FOUND)
fLocked = TRUE;



with

code:

if ((err != ERROR_FILE_NOT_FOUND) && (err != ERROR_PATH_NOT_FOUND))
fLocked = TRUE;



Also it would be great to replace

code:

#include "afxres.h"



to

code:

#include <windows.h>



in LockedList.rc to be able to compile with MSVC Express edition.

Dmitry
ukreator is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
handle, plug-in

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump