dwatteau / scummtr

Fan translation tools for LucasArts SCUMM games
MIT License
24 stars 4 forks source link

fix(common): Make xmkdir() fail in case of mkdir() errors #44

Closed dwatteau closed 2 years ago

dwatteau commented 2 years ago

As is already done for xremove() and xrename(), although it's not very clean.

Coverity CID 345884.

dwatteau commented 2 years ago

Merging this, because I don't think it could cause a regression for ScummTR 0.5.0 (which is due soon), but we're now comparing mkdir() against 0, not -1, because DJGPP only guarantees "nonzero on failure".