From 60ac60ceb07400b1d33456dc71033a0b604f3983 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sat, 26 Nov 2011 00:32:06 +0000 Subject: [PATCH] [wdk] fixed non wchar GetWindowText --- rufus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);