Skip to content

Commit

Permalink
Attempt to load/create WW15MGH._96 even if writable directory cannot …
Browse files Browse the repository at this point in the history
…be resolved
  • Loading branch information
Eimantas Morkunas authored and EimantasMorkunas committed Dec 30, 2024
1 parent b82e705 commit 54d1a26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iModelCore/libsrc/csmap/Source/CS_egm96.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,14 @@ int CSmkBinaryEgm96 (struct cs_Egm96_ *__This)
double deltaLng = cs_Zero;

st = CS_rwDictDir (__This->binaryPath,sizeof (__This->binaryPath),__This->filePath);
#if !defined(GEOCOORD_ENHANCEMENT) /* Even if writable dir cannot be resolved, the binary file might already exist. */
if (st != 0)
{
CS_stncp (csErrnam,__This->filePath,MAXPATH);
CS_erpt (cs_DTC_FILE);
goto error;
}
#endif
cp = strrchr (__This->binaryPath,cs_ExtsepC);
if (cp == NULL)
{
Expand Down

0 comments on commit 54d1a26

Please sign in to comment.