mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-20 18:05:21 -04:00
[badblocks] use 0x55 and 0xAA for less than 2 passes checks
* Should be more effective at detecting errors than 0x00 and 0xFF.
This commit is contained in:
parent
f8c951f3d7
commit
9c71ac25d5
5 changed files with 14 additions and 12 deletions
6
src/ui.c
6
src/ui.c
|
@ -1555,11 +1555,11 @@ void ShowLanguageMenu(RECT rcExclude)
|
|||
void SetPassesTooltip(void)
|
||||
{
|
||||
const unsigned int pattern[BADLOCKS_PATTERN_TYPES][BADBLOCK_PATTERN_COUNT] =
|
||||
{ BADBLOCK_PATTERN_SLC, BADCLOCK_PATTERN_MLC, BADBLOCK_PATTERN_TLC };
|
||||
{ BADBLOCK_PATTERN_ONE_PASS, BADBLOCK_PATTERN_TWO_PASSES, BADBLOCK_PATTERN_SLC,
|
||||
BADCLOCK_PATTERN_MLC, BADBLOCK_PATTERN_TLC };
|
||||
int sel = ComboBox_GetCurSel(hNBPasses);
|
||||
int type = (sel < 2) ? 0 : sel - 2;
|
||||
CreateTooltip(hNBPasses, lmprintf(MSG_153 + ((sel >= 2) ? 3 : sel),
|
||||
pattern[type][0], pattern[type][1], pattern[type][2], pattern[type][3]), -1);
|
||||
pattern[sel][0], pattern[sel][1], pattern[sel][2], pattern[sel][3]), -1);
|
||||
}
|
||||
|
||||
void SetBootTypeDropdownWidth(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue