src/mess/tools/imgtool/windows/wimgtool.c
| r1395 | r1396 | |
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | | static BOOL win_create_directory_utf8(const char* pathname, LPSECURITY_ATTRIBUTES securityattributes) |
| 67 | | { |
| 68 | | BOOL result = FALSE; |
| 69 | | TCHAR* t_pathname = tstring_from_utf8(pathname); |
| 70 | | if( !t_pathname ) |
| 71 | | return result; |
| 72 | | |
| 73 | | result = CreateDirectory(t_pathname, securityattributes); |
| 74 | | |
| 75 | | free(t_pathname); |
| 76 | | |
| 77 | | return result; |
| 78 | | } |
| 79 | | |
| 80 | 66 | static wimgtool_info *get_wimgtool_info(HWND window) |
| 81 | 67 | { |
| 82 | 68 | wimgtool_info *info; |
| r1395 | r1396 | |
| 892 | 878 | const char *subpath; |
| 893 | 879 | char local_subpath[MAX_PATH]; |
| 894 | 880 | |
| 895 | | if (!win_create_directory_utf8(local_path, NULL)) |
| 881 | if (osd_mkdir(local_path) != FILERR_NONE) |
| 896 | 882 | { |
| 897 | 883 | err = IMGTOOLERR_UNEXPECTED; |
| 898 | 884 | goto done; |