mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
patch to add binary mode on opening files (for Windows+Cygwin compatibility).
This commit is contained in:
@@ -202,7 +202,7 @@ static WRootMenuData *text_openMenuFile(char *path)
|
||||
data = wmalloc(sizeof(TextMenuReaderData));
|
||||
data->reader = TextMenuReader;
|
||||
|
||||
data->file = fopen(path, "r");
|
||||
data->file = fopen(path, "rb");
|
||||
if (!data->file) {
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user