mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-28 02:45:47 +01:00
patch to add binary mode on opening files (for Windows+Cygwin compatibility).
This commit is contained in:
@@ -67,7 +67,7 @@ RLoadPNG(RContext *context, char *file, int index)
|
||||
png_bytep *png_rows;
|
||||
unsigned char *ptr;
|
||||
|
||||
f = fopen(file, "r");
|
||||
f = fopen(file, "rb");
|
||||
if (!f) {
|
||||
RErrorCode = RERR_OPEN;
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user