mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-19 17:35:10 -04:00
[ext2fs] integrate ext3 formatting into UI operations
* Add display of persistence controls on relevant images * Add progress on ext3 formatting and improve error reporting * Also improve MountVolume() and fix some Coverity warnings
This commit is contained in:
parent
ccf0f1bf3c
commit
0ad3f8c1d3
16 changed files with 298 additions and 113 deletions
15
src/stdio.c
15
src/stdio.c
|
@ -42,7 +42,6 @@ HWND hStatus;
|
|||
size_t ubuffer_pos = 0;
|
||||
char ubuffer[UBUFFER_SIZE]; // Buffer for ubpushf() messages we don't log right away
|
||||
|
||||
#ifdef RUFUS_LOGGING
|
||||
void _uprintf(const char *format, ...)
|
||||
{
|
||||
static char buf[4096];
|
||||
|
@ -78,7 +77,19 @@ void _uprintf(const char *format, ...)
|
|||
}
|
||||
free(wbuf);
|
||||
}
|
||||
#endif
|
||||
|
||||
void _uprintfs(const char* str)
|
||||
{
|
||||
wchar_t* wstr;
|
||||
wstr = utf8_to_wchar(str);
|
||||
OutputDebugStringW(wstr);
|
||||
if ((hLog != NULL) && (hLog != INVALID_HANDLE_VALUE)) {
|
||||
Edit_SetSel(hLog, MAX_LOG_SIZE, MAX_LOG_SIZE);
|
||||
Edit_ReplaceSel(hLog, wstr);
|
||||
Edit_Scroll(hLog, Edit_GetLineCount(hLog), 0);
|
||||
}
|
||||
free(wstr);
|
||||
}
|
||||
|
||||
// Prints a bitstring of a number of any size, with or without leading zeroes.
|
||||
// See also the printbits() and printbitslz() helper macros in rufus.h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue