mirror of
https://github.com/nothings/stb
synced 2024-12-14 12:07:13 +03:00
stb_image: fix unused parameter
This commit is contained in:
parent
422e29017c
commit
b8b6e7c31a
@ -578,10 +578,10 @@ FILE *stbi__fopen(char const *filename, char const *mode)
|
||||
{
|
||||
FILE *f;
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
if (0 != fopen_s(&f, filename, "rb"))
|
||||
if (0 != fopen_s(&f, filename, mode))
|
||||
f=0;
|
||||
#else
|
||||
f = fopen(filename, "rb");
|
||||
f = fopen(filename, mode);
|
||||
#endif
|
||||
return f;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user