Maybe it's because GetFileAttributes returns DWORD (unsigned) but
FileGetAttr's result is Longint (signed). When directory not exists
result is DWORD(-1) = 0xFFFFFFFF which is outside of Longint range.

--
cobines
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to