mirror of https://github.com/OpenTTD/OpenTTD
(svn r1458) -Fix: remove byte *s again for windows.
parent
cd4e73193d
commit
53bd40ebaf
|
@ -774,7 +774,6 @@ static bool FileMD5(const MD5File file, bool warn)
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[MAX_PATH];
|
char buf[MAX_PATH];
|
||||||
byte *s;
|
|
||||||
|
|
||||||
md5_state_t filemd5state;
|
md5_state_t filemd5state;
|
||||||
int len=0;
|
int len=0;
|
||||||
|
@ -786,8 +785,9 @@ static bool FileMD5(const MD5File file, bool warn)
|
||||||
|
|
||||||
#if !defined(WIN32)
|
#if !defined(WIN32)
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
|
byte *s;
|
||||||
// make lower case and check again
|
// make lower case and check again
|
||||||
for (s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
|
for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++)
|
||||||
*s = tolower(*s);
|
*s = tolower(*s);
|
||||||
f = fopen(buf, "rb");
|
f = fopen(buf, "rb");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue