mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
OS/2 build fixes [K.O. Myung-Hun]
This commit is contained in:
parent
a6e450ed6d
commit
8157337c42
@ -583,6 +583,7 @@ void sdl_osd_interface::init(running_machine &machine)
|
||||
/* Set the SDL environment variable for drivers wanting to load the
|
||||
* lib at startup.
|
||||
*/
|
||||
#if USE_OPENGL
|
||||
/* FIXME: move lib loading code from drawogl.c here */
|
||||
|
||||
stemp = options.gl_lib();
|
||||
@ -591,6 +592,7 @@ void sdl_osd_interface::init(running_machine &machine)
|
||||
osd_setenv("SDL_VIDEO_GL_DRIVER", stemp, 1);
|
||||
mame_printf_verbose("Setting SDL_VIDEO_GL_DRIVER = '%s' ...\n", stemp);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* get number of processors */
|
||||
stemp = options.numprocessors();
|
||||
|
@ -272,8 +272,7 @@ osd_directory_entry *osd_stat(const char *path)
|
||||
|
||||
// create an osd_directory_entry; be sure to make sure that the caller can
|
||||
// free all resources by just freeing the resulting osd_directory_entry
|
||||
result = (osd_directory_entry *) osd_malloc_array(sizeof(*result) + strlen(path)
|
||||
1);
|
||||
result = (osd_directory_entry *) osd_malloc_array(sizeof(*result) + strlen(path) + 1);
|
||||
strcpy(((char *) result) + sizeof(*result), path);
|
||||
result->name = ((char *) result) + sizeof(*result);
|
||||
result->type = S_ISDIR(st.st_mode) ? ENTTYPE_DIR : ENTTYPE_FILE;
|
||||
@ -329,3 +328,4 @@ file_error osd_get_full_path(char **dst, const char *path)
|
||||
|
||||
_abspath(*dst, path, CCHMAXPATH + 1);
|
||||
return FILERR_NONE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user