diff options
author | Su_Laus <sulau@freenet.de> | 2022-12-16 18:47:55 +0100 |
---|---|---|
committer | Su_Laus <sulau@freenet.de> | 2022-12-16 18:47:55 +0100 |
commit | d46354584f9bcc674a4a0cccadbdfb9a9a772d2c (patch) | |
tree | 28dc1565e77e170b9b3f453b6efdc3ae96277946 /libtiff | |
parent | 4bcdec373493a0ec54547eba170d337c59d05ced (diff) | |
download | libtiff-git-d46354584f9bcc674a4a0cccadbdfb9a9a772d2c.tar.gz |
Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
Diffstat (limited to 'libtiff')
-rw-r--r-- | libtiff/tif_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtiff/tif_win32.c b/libtiff/tif_win32.c index 8b476506..61ff724a 100644 --- a/libtiff/tif_win32.c +++ b/libtiff/tif_win32.c @@ -274,7 +274,7 @@ TIFF *TIFFOpenExt(const char *name, const char *mode, TIFFOpenOptions *opts) dwMode = OPEN_EXISTING; break; case O_RDWR: - dwMode = OPEN_ALWAYS; + dwMode = OPEN_EXISTING; break; case O_RDWR | O_CREAT: dwMode = OPEN_ALWAYS; |