Previous 15994 Revisions Next

r1396 Saturday 8th December, 2007 at 19:03:51 UTC by Firewave
Replaced win_create_directory_utf8() with osd_mkdir()
[src/mess/tools/imgtool/windows]wimgtool.c

src/mess/tools/imgtool/windows/wimgtool.c
r1395r1396
6363   }
6464}
6565
66static 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
8066static wimgtool_info *get_wimgtool_info(HWND window)
8167{
8268   wimgtool_info *info;
r1395r1396
892878   const char *subpath;
893879   char local_subpath[MAX_PATH];
894880
895   if (!win_create_directory_utf8(local_path, NULL))
881   if (osd_mkdir(local_path) != FILERR_NONE)
896882   {
897883      err = IMGTOOLERR_UNEXPECTED;
898884      goto done;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team