--- libflaim-4.9.966/src/fsysdata.cpp.orig 2006-10-04 20:11:44.000000000 +0200 +++ libflaim-4.9.966/src/fsysdata.cpp 2009-02-19 21:51:16.708177861 +0100 @@ -1068,7 +1068,7 @@ if( !gv_FlmSysData.uiOpenFFiles) { - if( (FLMBOOL)Value1) + if( (FLMBOOL)(FLMINT)Value1) { gv_FlmSysData.uiFileOpenFlags = FLM_IO_RDWR | FLM_IO_SH_DENYNONE | FLM_IO_DIRECT;