Author: hbelusca
Date: Sat Feb 13 12:58:41 2016
New Revision: 70726
URL:
http://svn.reactos.org/svn/reactos?rev=70726&view=rev
Log:
[MSCONFIG_NEW]: Explicitely use unicode APIs.
Modified:
trunk/reactos/base/applications/msconfig_new/msconfig.c
trunk/reactos/base/applications/msconfig_new/startuppage.c
Modified: trunk/reactos/base/applications/msconfig_new/msconfig.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig_new/msconfig.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig_new/msconfig.c [iso-8859-1] Sat Feb 13
12:58:41 2016
@@ -190,8 +190,8 @@
/* Set the dialog icons */
hIcon = (HICON)LoadImageW(hInst, MAKEINTRESOURCEW(IDI_APPICON), IMAGE_ICON,
0, 0, LR_SHARED | LR_DEFAULTSIZE);
hIconSm = (HICON)CopyImage(hIcon, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON),
GetSystemMetrics(SM_CYSMICON), LR_COPYFROMRESOURCE);
- SendMessage(hDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
- SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)hIconSm);
+ SendMessageW(hDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
+ SendMessageW(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)hIconSm);
/* Sub-class the property sheet window procedure */
wpOrigEditProc = (WNDPROC)SetWindowLongPtr(hDlg, DWLP_DLGPROC,
(LONG_PTR)MainWndProc);
Modified: trunk/reactos/base/applications/msconfig_new/startuppage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig_new/startuppage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig_new/startuppage.c [iso-8859-1] Sat Feb 13
12:58:41 2016
@@ -32,9 +32,9 @@
hStartupListCtrl = GetDlgItem(hDlg, IDC_STARTUP_LIST);
hStartupDialog = hDlg;
- dwStyle = (DWORD) SendMessage(hStartupListCtrl, LVM_GETEXTENDEDLISTVIEWSTYLE, 0,
0);
+ dwStyle = (DWORD)SendMessageW(hStartupListCtrl, LVM_GETEXTENDEDLISTVIEWSTYLE, 0,
0);
dwStyle = dwStyle | LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES;
- SendMessage(hStartupListCtrl, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwStyle);
+ SendMessageW(hStartupListCtrl, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwStyle);
SetWindowPos(hDlg, NULL, 10, 32, 0, 0, SWP_NOACTIVATE | SWP_NOOWNERZORDER |
SWP_NOSIZE | SWP_NOZORDER);
@@ -131,7 +131,7 @@
{
GetLongPathName(Data, Data, (DWORD) _tcsclen(Data));
item.pszText = Data;
- SendMessage(hStartupListCtrl, LVM_SETITEMTEXT,
item.iItem, (LPARAM) &item);
+ SendMessageW(hStartupListCtrl, LVM_SETITEMTEXT,
item.iItem, (LPARAM) &item);
}
}
}
@@ -184,7 +184,7 @@
GetLongPathName(Data, Data, (DWORD) _tcsclen(Data));
item.pszText = Data;
item.iSubItem = 1;
- SendMessage(hStartupListCtrl, LVM_SETITEMTEXT, item.iItem,
(LPARAM) &item);
+ SendMessageW(hStartupListCtrl, LVM_SETITEMTEXT, item.iItem,
(LPARAM) &item);
}
switch (PtrToLong(hRootKey))
@@ -202,7 +202,7 @@
_tcscat(Path, KeyName);
item.pszText = Path;
item.iSubItem = 2;
- SendMessage(hStartupListCtrl, LVM_SETITEMTEXT, item.iItem, (LPARAM)
&item);
+ SendMessageW(hStartupListCtrl, LVM_SETITEMTEXT, item.iItem, (LPARAM)
&item);
}
HeapFree(GetProcessHeap(), 0, Data);
}