[ntfs] add bootable NTFS support

* NTFS boot records in ms-sys
* also added debug duplication to PrintMessage
* also fixed controls staying enabled during formatting
This commit is contained in:
Pete Batard 2012-02-03 18:19:50 +00:00
parent bb0c0ecb1c
commit d1e4ba278b
17 changed files with 534 additions and 47 deletions

View file

@ -137,7 +137,7 @@ static void CALLBACK PrintStatusTimeout(HWND hwnd, UINT uMsg, UINT_PTR idEvent,
KillTimer(hMainDialog, TID_MESSAGE);
}
void PrintStatus(unsigned int duration, const char *format, ...)
void PrintStatus(unsigned int duration, BOOL debug, const char *format, ...)
{
char *p = szStatusMessage;
va_list args;
@ -154,6 +154,9 @@ void PrintStatus(unsigned int duration, const char *format, ...)
*p = '\0';
if (debug)
uprintf("%s\n", szStatusMessage);
if ((duration) || (!bStatusTimerArmed)) {
SetDlgItemTextU(hMainDialog, IDC_STATUS, szStatusMessage);
}