You've already forked lazarus-ccr
LazEdit: when calling FileGetAttrUTF8 check for LongInt(feInvalidHandle) instead of feInvalidHandle.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3251 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -688,7 +688,7 @@ begin
|
||||
//because it uses FILE_ATTRIBUTE_NORMAL
|
||||
//see http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858%28v=vs.85%29.aspx
|
||||
Attr := FileGetAttrUTF8(Utf8Fn);
|
||||
if (Attr = feInvalidHandle) then Attr := 0;
|
||||
if (Attr = LongInt(feInvalidHandle)) then Attr := 0;
|
||||
if ((Attr and faHidden) = faHidden) then FileSetAttrUtf8(Utf8Fn, Attr and (not faHidden));
|
||||
{$endif}
|
||||
Lines.SaveToFile(Utf8Fn);
|
||||
|
Reference in New Issue
Block a user