mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 16:41:22 +00:00
[SHELL32]
- Formatting. No code changes. svn path=/trunk/; revision=54702
This commit is contained in:
parent
13b53b78ab
commit
2c53cb44ab
1 changed files with 356 additions and 356 deletions
|
@ -91,7 +91,7 @@ typedef struct
|
||||||
ENABLEVOLUMECOMPRESSION EnableVolumeCompression;
|
ENABLEVOLUMECOMPRESSION EnableVolumeCompression;
|
||||||
CHKDSK Chkdsk;
|
CHKDSK Chkdsk;
|
||||||
UINT Result;
|
UINT Result;
|
||||||
}FORMAT_DRIVE_CONTEXT, *PFORMAT_DRIVE_CONTEXT;
|
} FORMAT_DRIVE_CONTEXT, *PFORMAT_DRIVE_CONTEXT;
|
||||||
|
|
||||||
BOOL InitializeFmifsLibrary(PFORMAT_DRIVE_CONTEXT pContext);
|
BOOL InitializeFmifsLibrary(PFORMAT_DRIVE_CONTEXT pContext);
|
||||||
BOOL GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNumberOfBytes);
|
BOOL GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNumberOfBytes);
|
||||||
|
@ -112,7 +112,7 @@ static const GUID GUID_DEVCLASS_DISKDRIVE = {0x4d36e967L, 0xe325, 0x11ce, {0xbf,
|
||||||
VOID
|
VOID
|
||||||
GetDriveNameWithLetter(LPWSTR szText, UINT Length, WCHAR Drive)
|
GetDriveNameWithLetter(LPWSTR szText, UINT Length, WCHAR Drive)
|
||||||
{
|
{
|
||||||
WCHAR szDrive[] = {'C',':','\\', 0};
|
WCHAR szDrive[] = {'C', ':', '\\', 0};
|
||||||
DWORD dwMaxComp, dwFileSys, TempLength = 0;
|
DWORD dwMaxComp, dwFileSys, TempLength = 0;
|
||||||
|
|
||||||
szDrive[0] = Drive;
|
szDrive[0] = Drive;
|
||||||
|
@ -123,7 +123,7 @@ GetDriveNameWithLetter(LPWSTR szText, UINT Length, WCHAR Drive)
|
||||||
if (!TempLength)
|
if (!TempLength)
|
||||||
{
|
{
|
||||||
/* load default volume label */
|
/* load default volume label */
|
||||||
TempLength = LoadStringW(shell32_hInstance, IDS_DRIVE_FIXED, &szText[Length+1], (sizeof(szText)/sizeof(WCHAR))- Length - 2);
|
TempLength = LoadStringW(shell32_hInstance, IDS_DRIVE_FIXED, &szText[Length+1], (sizeof(szText) / sizeof(WCHAR)) - Length - 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (TempLength + 4 < Length)
|
if (TempLength + 4 < Length)
|
||||||
|
@ -132,7 +132,7 @@ GetDriveNameWithLetter(LPWSTR szText, UINT Length, WCHAR Drive)
|
||||||
szText[TempLength+1] = L'(';
|
szText[TempLength+1] = L'(';
|
||||||
szText[TempLength+2] = szDrive[0];
|
szText[TempLength+2] = szDrive[0];
|
||||||
szText[TempLength+3] = L')';
|
szText[TempLength+3] = L')';
|
||||||
TempLength +=4;
|
TempLength += 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TempLength < Length)
|
if (TempLength < Length)
|
||||||
|
@ -149,9 +149,9 @@ InitializeChkDskDialog(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
UINT Length;
|
UINT Length;
|
||||||
SetWindowLongPtr(hwndDlg, DWLP_USER, (INT_PTR)pContext);
|
SetWindowLongPtr(hwndDlg, DWLP_USER, (INT_PTR)pContext);
|
||||||
|
|
||||||
Length = GetWindowTextW(hwndDlg, szText, sizeof(szText)/sizeof(WCHAR));
|
Length = GetWindowTextW(hwndDlg, szText, sizeof(szText) / sizeof(WCHAR));
|
||||||
|
|
||||||
GetDriveNameWithLetter(&szText[Length +1], (sizeof(szText)/sizeof(WCHAR))-Length-1, pContext->Drive);
|
GetDriveNameWithLetter(&szText[Length +1], (sizeof(szText) / sizeof(WCHAR)) - Length - 1, pContext->Drive);
|
||||||
szText[Length] = L' ';
|
szText[Length] = L' ';
|
||||||
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
||||||
SetWindowText(hwndDlg, szText);
|
SetWindowText(hwndDlg, szText);
|
||||||
|
@ -200,13 +200,13 @@ ChkDskNow(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
{
|
{
|
||||||
DWORD ClusterSize = 0, dwMaxComponentLength, FileSystemFlags;
|
DWORD ClusterSize = 0, dwMaxComponentLength, FileSystemFlags;
|
||||||
WCHAR szFs[30];
|
WCHAR szFs[30];
|
||||||
WCHAR szDrive[] = {'C',':','\\', 0};
|
WCHAR szDrive[] = {'C', ':', '\\', 0};
|
||||||
WCHAR szVolumeLabel[40];
|
WCHAR szVolumeLabel[40];
|
||||||
ULARGE_INTEGER TotalNumberOfFreeBytes, FreeBytesAvailableUser;
|
ULARGE_INTEGER TotalNumberOfFreeBytes, FreeBytesAvailableUser;
|
||||||
BOOLEAN bCorrectErrors = FALSE, bScanDrive = FALSE;
|
BOOLEAN bCorrectErrors = FALSE, bScanDrive = FALSE;
|
||||||
|
|
||||||
szDrive[0] = pContext->Drive;
|
szDrive[0] = pContext->Drive;
|
||||||
if(!GetVolumeInformationW(szDrive, szVolumeLabel, sizeof(szVolumeLabel)/sizeof(WCHAR), NULL, &dwMaxComponentLength, &FileSystemFlags, szFs, sizeof(szFs)/sizeof(WCHAR)))
|
if(!GetVolumeInformationW(szDrive, szVolumeLabel, sizeof(szVolumeLabel) / sizeof(WCHAR), NULL, &dwMaxComponentLength, &FileSystemFlags, szFs, sizeof(szFs) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
FIXME("failed to get drive fs type\n");
|
FIXME("failed to get drive fs type\n");
|
||||||
return;
|
return;
|
||||||
|
@ -366,7 +366,7 @@ InitializeGeneralDriveDialog(HWND hwndDlg, WCHAR * szDrive)
|
||||||
ULARGE_INTEGER TotalNumberOfFreeBytes;
|
ULARGE_INTEGER TotalNumberOfFreeBytes;
|
||||||
ULARGE_INTEGER TotalNumberOfBytes;
|
ULARGE_INTEGER TotalNumberOfBytes;
|
||||||
|
|
||||||
ret = GetVolumeInformationW(szDrive, szVolumeName, MAX_PATH+1, NULL, &MaxComponentLength, &FileSystemFlags, FileSystemName, MAX_PATH+1);
|
ret = GetVolumeInformationW(szDrive, szVolumeName, MAX_PATH + 1, NULL, &MaxComponentLength, &FileSystemFlags, FileSystemName, MAX_PATH + 1);
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
/* set volume label */
|
/* set volume label */
|
||||||
|
@ -503,7 +503,7 @@ DriveGeneralDlg(
|
||||||
if (lppsn->hdr.code == PSN_APPLY)
|
if (lppsn->hdr.code == PSN_APPLY)
|
||||||
{
|
{
|
||||||
lpstr = (LPWSTR)GetWindowLongPtr(hwndDlg, DWLP_USER);
|
lpstr = (LPWSTR)GetWindowLongPtr(hwndDlg, DWLP_USER);
|
||||||
if (lpstr && GetDlgItemTextW(hwndDlg, 14000, szPath, sizeof(szPath)/sizeof(WCHAR)))
|
if (lpstr && GetDlgItemTextW(hwndDlg, 14000, szPath, sizeof(szPath) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
szPath[(sizeof(szPath)/sizeof(WCHAR))-1] = L'\0';
|
szPath[(sizeof(szPath)/sizeof(WCHAR))-1] = L'\0';
|
||||||
SetVolumeLabelW(lpstr, szPath);
|
SetVolumeLabelW(lpstr, szPath);
|
||||||
|
@ -684,7 +684,7 @@ SH_ShowDriveProperties(WCHAR * drive, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST *
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.phpage = hpsp;
|
psh.phpage = hpsp;
|
||||||
|
|
||||||
if (GetVolumeInformationW(drive, szName, sizeof(szName)/sizeof(WCHAR), NULL, &dwMaxComponent,
|
if (GetVolumeInformationW(drive, szName, sizeof(szName) / sizeof(WCHAR), NULL, &dwMaxComponent,
|
||||||
&dwFileSysFlags, NULL, 0))
|
&dwFileSysFlags, NULL, 0))
|
||||||
{
|
{
|
||||||
psh.pszCaption = szName;
|
psh.pszCaption = szName;
|
||||||
|
@ -694,8 +694,8 @@ SH_ShowDriveProperties(WCHAR * drive, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST *
|
||||||
/* FIXME
|
/* FIXME
|
||||||
* check if disk is a really a local hdd
|
* check if disk is a really a local hdd
|
||||||
*/
|
*/
|
||||||
i = LoadStringW(shell32_hInstance, IDS_DRIVE_FIXED, szName, sizeof(szName)/sizeof(WCHAR)-6);
|
i = LoadStringW(shell32_hInstance, IDS_DRIVE_FIXED, szName, sizeof(szName) / sizeof(WCHAR) - 6);
|
||||||
if (i > 0 && i < (sizeof(szName)/sizeof(WCHAR)) - 6)
|
if (i > 0 && i < (sizeof(szName) / sizeof(WCHAR)) - 6)
|
||||||
{
|
{
|
||||||
szName[i] = L' ';
|
szName[i] = L' ';
|
||||||
szName[i+1] = L'(';
|
szName[i+1] = L'(';
|
||||||
|
@ -709,7 +709,7 @@ SH_ShowDriveProperties(WCHAR * drive, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST *
|
||||||
DriveType = GetDriveTypeW(drive);
|
DriveType = GetDriveTypeW(drive);
|
||||||
for (i = 0; i < DRIVE_PROPERTY_PAGES; i++)
|
for (i = 0; i < DRIVE_PROPERTY_PAGES; i++)
|
||||||
{
|
{
|
||||||
if (PropPages[i].DriveType == (UINT)-1 || (PropPages[i].DriveType != (UINT)-1 && PropPages[i].DriveType == DriveType))
|
if (PropPages[i].DriveType == (UINT) - 1 || (PropPages[i].DriveType != (UINT) - 1 && PropPages[i].DriveType == DriveType))
|
||||||
{
|
{
|
||||||
HPROPSHEETPAGE hprop = SH_CreatePropertySheetPage(PropPages[i].resname, PropPages[i].dlgproc, (LPARAM)drive, NULL);
|
HPROPSHEETPAGE hprop = SH_CreatePropertySheetPage(PropPages[i].resname, PropPages[i].dlgproc, (LPARAM)drive, NULL);
|
||||||
if (hprop)
|
if (hprop)
|
||||||
|
@ -722,7 +722,7 @@ SH_ShowDriveProperties(WCHAR * drive, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST *
|
||||||
|
|
||||||
if (SHCreateDataObject(pidlFolder, 1, apidl, NULL, IID_IDataObject, (void **)&pDataObj) == S_OK)
|
if (SHCreateDataObject(pidlFolder, 1, apidl, NULL, IID_IDataObject, (void **)&pDataObj) == S_OK)
|
||||||
{
|
{
|
||||||
hpsx = SHCreatePropSheetExtArrayEx(HKEY_CLASSES_ROOT, L"Drive", MAX_PROPERTY_SHEET_PAGE-DRIVE_PROPERTY_PAGES, pDataObj);
|
hpsx = SHCreatePropSheetExtArrayEx(HKEY_CLASSES_ROOT, L"Drive", MAX_PROPERTY_SHEET_PAGE - DRIVE_PROPERTY_PAGES, pDataObj);
|
||||||
if (hpsx)
|
if (hpsx)
|
||||||
{
|
{
|
||||||
SHAddFromPropSheetExtArray(hpsx, (LPFNADDPROPSHEETPAGE)AddPropSheetPageProc, (LPARAM)&psh);
|
SHAddFromPropSheetExtArray(hpsx, (LPFNADDPROPSHEETPAGE)AddPropSheetPageProc, (LPARAM)&psh);
|
||||||
|
@ -771,7 +771,7 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
|
||||||
}
|
}
|
||||||
else if (!wcsicmp(szFs, L"FAT32"))
|
else if (!wcsicmp(szFs, L"FAT32"))
|
||||||
{
|
{
|
||||||
if (TotalNumberOfBytes->QuadPart <=(64 * 1024 * 1024))
|
if (TotalNumberOfBytes->QuadPart <= (64 * 1024 * 1024))
|
||||||
ClusterSize = 512;
|
ClusterSize = 512;
|
||||||
else if (TotalNumberOfBytes->QuadPart <= (128 * 1024 * 1024))
|
else if (TotalNumberOfBytes->QuadPart <= (128 * 1024 * 1024))
|
||||||
ClusterSize = 1024;
|
ClusterSize = 1024;
|
||||||
|
@ -788,7 +788,7 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
|
||||||
}
|
}
|
||||||
else if (!wcsicmp(szFs, L"NTFS"))
|
else if (!wcsicmp(szFs, L"NTFS"))
|
||||||
{
|
{
|
||||||
if (TotalNumberOfBytes->QuadPart <=(512 * 1024 * 1024))
|
if (TotalNumberOfBytes->QuadPart <= (512 * 1024 * 1024))
|
||||||
ClusterSize = 512;
|
ClusterSize = 512;
|
||||||
else if (TotalNumberOfBytes->QuadPart <= (1024 * 1024 * 1024))
|
else if (TotalNumberOfBytes->QuadPart <= (1024 * 1024 * 1024))
|
||||||
ClusterSize = 1024;
|
ClusterSize = 1024;
|
||||||
|
@ -840,7 +840,7 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LoadStringW(shell32_hInstance, IDS_DEFAULT_CLUSTER_SIZE, szFs, sizeof(szFs)/sizeof(WCHAR)))
|
if (LoadStringW(shell32_hInstance, IDS_DEFAULT_CLUSTER_SIZE, szFs, sizeof(szFs) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
hDlgCtrl = GetDlgItem(hwndDlg, 28680);
|
hDlgCtrl = GetDlgItem(hwndDlg, 28680);
|
||||||
szFs[(sizeof(szFs)/sizeof(WCHAR))-1] = L'\0';
|
szFs[(sizeof(szFs)/sizeof(WCHAR))-1] = L'\0';
|
||||||
|
@ -860,7 +860,7 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LoadStringW(shell32_hInstance, IDS_DEFAULT_CLUSTER_SIZE, szFs, sizeof(szFs)/sizeof(WCHAR)))
|
if (LoadStringW(shell32_hInstance, IDS_DEFAULT_CLUSTER_SIZE, szFs, sizeof(szFs) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
hDlgCtrl = GetDlgItem(hwndDlg, 28680);
|
hDlgCtrl = GetDlgItem(hwndDlg, 28680);
|
||||||
szFs[(sizeof(szFs)/sizeof(WCHAR))-1] = L'\0';
|
szFs[(sizeof(szFs)/sizeof(WCHAR))-1] = L'\0';
|
||||||
|
@ -881,7 +881,7 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
}
|
}
|
||||||
|
|
||||||
hDlgCtrl = GetDlgItem(hwndDlg, 28680);
|
hDlgCtrl = GetDlgItem(hwndDlg, 28680);
|
||||||
if (LoadStringW(shell32_hInstance, IDS_DEFAULT_CLUSTER_SIZE, szFs, sizeof(szFs)/sizeof(WCHAR)))
|
if (LoadStringW(shell32_hInstance, IDS_DEFAULT_CLUSTER_SIZE, szFs, sizeof(szFs) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
szFs[(sizeof(szFs)/sizeof(WCHAR))-1] = L'\0';
|
szFs[(sizeof(szFs)/sizeof(WCHAR))-1] = L'\0';
|
||||||
SendMessageW(hDlgCtrl, CB_RESETCONTENT, 0, 0);
|
SendMessageW(hDlgCtrl, CB_RESETCONTENT, 0, 0);
|
||||||
|
@ -894,7 +894,7 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
for (lIndex = 0; lIndex < 4; lIndex++)
|
for (lIndex = 0; lIndex < 4; lIndex++)
|
||||||
{
|
{
|
||||||
TotalNumberOfBytes.QuadPart = ClusterSize;
|
TotalNumberOfBytes.QuadPart = ClusterSize;
|
||||||
if (StrFormatByteSizeW(TotalNumberOfBytes.QuadPart, szFs, sizeof(szFs)/sizeof(WCHAR)))
|
if (StrFormatByteSizeW(TotalNumberOfBytes.QuadPart, szFs, sizeof(szFs) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
lIndex = SendMessageW(hDlgCtrl, CB_ADDSTRING, 0, (LPARAM)szFs);
|
lIndex = SendMessageW(hDlgCtrl, CB_ADDSTRING, 0, (LPARAM)szFs);
|
||||||
if (lIndex != CB_ERR)
|
if (lIndex != CB_ERR)
|
||||||
|
@ -925,11 +925,11 @@ InitializeFormatDriveDlg(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
BOOLEAN Latest;
|
BOOLEAN Latest;
|
||||||
HWND hDlgCtrl;
|
HWND hDlgCtrl;
|
||||||
|
|
||||||
Length = GetWindowTextW(hwndDlg, szText, sizeof(szText)/sizeof(WCHAR));
|
Length = GetWindowTextW(hwndDlg, szText, sizeof(szText) / sizeof(WCHAR));
|
||||||
if (Length < 0)
|
if (Length < 0)
|
||||||
Length = 0;
|
Length = 0;
|
||||||
szDrive[0] = pContext->Drive + L'A';
|
szDrive[0] = pContext->Drive + L'A';
|
||||||
if (GetVolumeInformationW(szDrive, &szText[Length+1], (sizeof(szText)/sizeof(WCHAR))- Length - 2, &dwSerial, &dwMaxComp, &dwFileSys, szFs, sizeof(szFs)/sizeof(WCHAR)))
|
if (GetVolumeInformationW(szDrive, &szText[Length+1], (sizeof(szText) / sizeof(WCHAR)) - Length - 2, &dwSerial, &dwMaxComp, &dwFileSys, szFs, sizeof(szFs) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
szText[Length] = L' ';
|
szText[Length] = L' ';
|
||||||
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
||||||
|
@ -937,7 +937,7 @@ InitializeFormatDriveDlg(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
if (!TempLength)
|
if (!TempLength)
|
||||||
{
|
{
|
||||||
/* load default volume label */
|
/* load default volume label */
|
||||||
TempLength = LoadStringW(shell32_hInstance, IDS_DRIVE_FIXED, &szText[Length+1], (sizeof(szText)/sizeof(WCHAR))- Length - 2);
|
TempLength = LoadStringW(shell32_hInstance, IDS_DRIVE_FIXED, &szText[Length+1], (sizeof(szText) / sizeof(WCHAR)) - Length - 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -948,16 +948,16 @@ InitializeFormatDriveDlg(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
Length += TempLength + 1;
|
Length += TempLength + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((DWORD)Length + 4 < (sizeof(szText)/sizeof(WCHAR)))
|
if ((DWORD)Length + 4 < (sizeof(szText) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
szText[Length] = L' ';
|
szText[Length] = L' ';
|
||||||
szText[Length+1] = L'(';
|
szText[Length+1] = L'(';
|
||||||
szText[Length+2] = szDrive[0];
|
szText[Length+2] = szDrive[0];
|
||||||
szText[Length+3] = L')';
|
szText[Length+3] = L')';
|
||||||
Length +=4;
|
Length += 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((DWORD)Length < (sizeof(szText)/sizeof(WCHAR)))
|
if ((DWORD)Length < (sizeof(szText) / sizeof(WCHAR)))
|
||||||
szText[Length] = L'\0';
|
szText[Length] = L'\0';
|
||||||
else
|
else
|
||||||
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
||||||
|
@ -967,7 +967,7 @@ InitializeFormatDriveDlg(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
|
|
||||||
if (GetDiskFreeSpaceExW(szDrive, &FreeBytesAvailableUser, &TotalNumberOfBytes, NULL))
|
if (GetDiskFreeSpaceExW(szDrive, &FreeBytesAvailableUser, &TotalNumberOfBytes, NULL))
|
||||||
{
|
{
|
||||||
if (StrFormatByteSizeW(TotalNumberOfBytes.QuadPart, szText, sizeof(szText)/sizeof(WCHAR)))
|
if (StrFormatByteSizeW(TotalNumberOfBytes.QuadPart, szText, sizeof(szText) / sizeof(WCHAR)))
|
||||||
{
|
{
|
||||||
/* add drive capacity */
|
/* add drive capacity */
|
||||||
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
szText[(sizeof(szText)/sizeof(WCHAR))-1] = L'\0';
|
||||||
|
@ -1078,7 +1078,7 @@ FormatDrive(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Length = SendMessageW(hDlgCtrl, CB_GETLBTEXTLEN, iSelIndex, 0);
|
Length = SendMessageW(hDlgCtrl, CB_GETLBTEXTLEN, iSelIndex, 0);
|
||||||
if ((int)Length == CB_ERR || Length + 1> sizeof(szFileSys)/sizeof(WCHAR))
|
if ((int)Length == CB_ERR || Length + 1 > sizeof(szFileSys) / sizeof(WCHAR))
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
FIXME("\n");
|
||||||
return;
|
return;
|
||||||
|
@ -1091,12 +1091,12 @@ FormatDrive(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
||||||
/* retrieve the volume label */
|
/* retrieve the volume label */
|
||||||
hDlgCtrl = GetWindow(hwndDlg, 28679);
|
hDlgCtrl = GetWindow(hwndDlg, 28679);
|
||||||
Length = SendMessageW(hDlgCtrl, WM_GETTEXTLENGTH, 0, 0);
|
Length = SendMessageW(hDlgCtrl, WM_GETTEXTLENGTH, 0, 0);
|
||||||
if (Length + 1 > sizeof(szLabel)/sizeof(WCHAR))
|
if (Length + 1 > sizeof(szLabel) / sizeof(WCHAR))
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
FIXME("\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SendMessageW(hDlgCtrl, WM_GETTEXT, sizeof(szLabel)/sizeof(WCHAR), (LPARAM)szLabel);
|
SendMessageW(hDlgCtrl, WM_GETTEXT, sizeof(szLabel) / sizeof(WCHAR), (LPARAM)szLabel);
|
||||||
szLabel[(sizeof(szLabel)/sizeof(WCHAR))-1] = L'\0';
|
szLabel[(sizeof(szLabel)/sizeof(WCHAR))-1] = L'\0';
|
||||||
|
|
||||||
/* check for quickformat */
|
/* check for quickformat */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue