MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / OnOK

Method OnOK

Ext2Mgr/DelDeadLetter.cpp:51–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49// CDelDeadLetter message handlers
50
51void CDelDeadLetter::OnOK()
52{
53 CHAR drvChar;
54 PEXT2_LETTER drvLetter = NULL;
55 UpdateData(TRUE);
56
57 drvChar = m_sDrvLetter.GetAt(0);
58
59 if ((drvChar >= '0') && (drvChar <= '9')) {
60 drvLetter = &drvDigits[drvChar - '0'];
61 }
62
63 if ((drvChar >= 'A') && (drvChar <= 'Z')) {
64 drvLetter = &drvLetters[drvChar - 'A'];
65 }
66
67 if (drvLetter) {
68 if (AfxMessageBox("Warning: the driver letter might be still used. Are you\r\n"
69 " sure that make it's a real dead driver letter ?", MB_YESNO) == IDYES) {
70
71 Ext2RemoveMountPoint(drvLetter, !m_bKeepIt);
72 Ext2RemoveDosSymLink(drvLetter->Letter);
73 UpdateDeadLetterList();
74 }
75 }
76}
77
78BOOL CDelDeadLetter::OnInitDialog()
79{

Callers

nothing calls this directly

Calls 2

Ext2RemoveMountPointFunction · 0.85
Ext2RemoveDosSymLinkFunction · 0.85

Tested by

no test coverage detected