Merge pull request #3087 from DavBfr/fix-png-load
Fix png image loading that needed write access
This commit is contained in:
commit
bb4a0c5255
@ -3,6 +3,8 @@
|
||||
* Image Utils
|
||||
*
|
||||
* Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||
* Copyright 2016 Inuvika Inc.
|
||||
* Copyright 2016 David PHAM-VAN <d.phamvan@inuvika.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -308,7 +310,7 @@ int winpr_image_read(wImage* image, const char* filename)
|
||||
BYTE sig[8];
|
||||
int status = -1;
|
||||
|
||||
fp = fopen(filename, "r+b");
|
||||
fp = fopen(filename, "rb");
|
||||
|
||||
if (!fp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user