mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
- format hdd images with raw format
- improve error checking svn path=/trunk/; revision=28910
This commit is contained in:
parent
4304ad2ff7
commit
19aed1070b
|
@ -187,9 +187,12 @@ namespace Sysreg_
|
|||
cerr << "Error: ROS_EMU_PATH must contain the path to qemu and qemu-img " << qemuimgdir << endl;
|
||||
return false;
|
||||
}
|
||||
_tremove(image.c_str ());
|
||||
|
||||
TCHAR * options[] = { NULL,
|
||||
TCHAR * options[] = {NULL,
|
||||
_T("create"),
|
||||
_T("-f"),
|
||||
_T("raw"),
|
||||
NULL,
|
||||
_T("100M"),
|
||||
NULL
|
||||
|
@ -197,15 +200,15 @@ namespace Sysreg_
|
|||
|
||||
|
||||
options[0] = (TCHAR*)qemuimgdir.c_str();
|
||||
options[2] = (TCHAR*)image.c_str();
|
||||
options[4] = (TCHAR*)image.c_str();
|
||||
|
||||
cerr << "Creating HDD Image ..." << image << endl;
|
||||
if (OsSupport::createProcess ((TCHAR*)qemuimgdir.c_str(), 4, options, true))
|
||||
OsSupport::createProcess ((TCHAR*)qemuimgdir.c_str(), 6, options, true);
|
||||
if (isFileExisting(image))
|
||||
{
|
||||
m_HDDImage = image;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue