use unicode structures when using unicode functions

svn path=/trunk/; revision=59111
This commit is contained in:
Christoph von Wittich 2013-05-29 20:36:22 +00:00
parent 0094a5c00f
commit 72eb8769a6
2 changed files with 3 additions and 3 deletions

View file

@ -213,7 +213,7 @@ InitializeDialog(HWND hwndDlg, PDISPLAY_DEVICEW pDispDevice)
HKEY hKey;
HWND hDlgCtrls[5];
DWORD dwMemory;
DEVMODE DevMode;
DEVMODEW DevMode;
IDirect3D9 * ppObj;
D3DADAPTER_IDENTIFIER9 Identifier;
HRESULT hResult;
@ -276,7 +276,7 @@ InitializeDialog(HWND hwndDlg, PDISPLAY_DEVICEW pDispDevice)
}
/* retrieve current display mode */
DevMode.dmSize = sizeof(DEVMODE);
DevMode.dmSize = sizeof(DEVMODEW);
if (EnumDisplaySettingsW(pDispDevice->DeviceName, ENUM_CURRENT_SETTINGS, &DevMode))
{
szFormat[0] = L'\0';

View file

@ -50,7 +50,7 @@ InsertTabCtrlItem(HWND hDlgCtrl, INT Position, LPWSTR uId)
TCITEMW item;
/* setup item info */
memset(&item, 0, sizeof(TCITEM));
memset(&item, 0, sizeof(TCITEMW));
item.mask = TCIF_TEXT;
/* load item name */