summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSu_Laus <sulau@freenet.de>2022-12-16 18:47:55 +0100
committerSu_Laus <sulau@freenet.de>2022-12-16 18:47:55 +0100
commitd46354584f9bcc674a4a0cccadbdfb9a9a772d2c (patch)
tree28dc1565e77e170b9b3f453b6efdc3ae96277946
parent4bcdec373493a0ec54547eba170d337c59d05ced (diff)
downloadlibtiff-git-d46354584f9bcc674a4a0cccadbdfb9a9a772d2c.tar.gz
Behavior of TIFFOpen() mode "r+" in the Windows implementation adjusted to that of Linux.
-rw-r--r--libtiff/tif_win32.c2
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;