1
0
mirror of https://github.com/nothings/stb synced 2025-03-12 16:11:11 -04:00

Fixed readdir_raw 64-bit crash

This commit is contained in:
Václav Patejdl 2015-09-09 01:47:43 +02:00
parent 7ac0f9c9b0
commit fb99a57546

6
stb.h
View File

@ -5837,8 +5837,8 @@ static char **readdir_raw(char *dir, int return_subdirs, char *mask)
#ifdef _MSC_VER
stb__wchar *ws;
struct _wfinddata_t data;
const long none = -1;
long z;
const intptr_t none = -1;
intptr_t z;
#else
const DIR *none = NULL;
DIR *z;
@ -6813,7 +6813,7 @@ static void stb__dirtree_scandir(char *path, time_t last_time, stb_dirtree *acti
int n;
struct _wfinddata_t c_file;
long hFile;
intptr_t hFile;
stb__wchar full_path[1024];
int has_slash;