diff --git a/rufus.c b/rufus.c index 489f4f7c..b17c2a3a 100644 --- a/rufus.c +++ b/rufus.c @@ -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);