[wdk] fixed non wchar GetWindowText

This commit is contained in:
Pete Batard 2011-11-26 00:32:06 +00:00
parent 1c302ee594
commit 60ac60ceb0
1 changed files with 2 additions and 2 deletions

View File

@ -578,8 +578,8 @@ BOOL Format(char DriveLetter)
// TODO: properly set MediaType
FormatErr = 0;
GetWindowText(hFileSystem, wFSType, ARRAYSIZE(wFSType));
GetWindowText(hLabel, wLabel, ARRAYSIZE(wLabel));
GetWindowTextW(hFileSystem, wFSType, ARRAYSIZE(wFSType));
GetWindowTextW(hLabel, wLabel, ARRAYSIZE(wLabel));
pfFormatEx(wDriveRoot, RemovableMedia, wFSType, wLabel,
(IsDlgButtonChecked(hMainDialog, IDC_QUICKFORMAT) == BST_CHECKED),
4096, FormatExCallback);