Bug 1121290: Use "%ls" instead of "%s" in _snwprintf_s format string, r=bsmedberg

MSVC 2015 requires the use of the "l" modifier. Not sure why MSVC 2013 didn't.

--HG--
extra : rebase_source : 0d340bd7488fb2ba3fdf663a870f9815f3e723c3
This commit is contained in:
zhoubcfan@163.com 2014-11-25 23:48:26 +08:00
Родитель 034f019f32
Коммит 795aecd9f2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -71,7 +71,7 @@ static char* GetKeyValue(void* verbuf, const WCHAR* key,
{
WCHAR keybuf[64]; // plenty for the template below, with the longest key
// we use (currently "FileDescription")
const WCHAR keyFormat[] = L"\\StringFileInfo\\%04X%04X\\%s";
const WCHAR keyFormat[] = L"\\StringFileInfo\\%04X%04X\\%ls";
WCHAR *buf = nullptr;
UINT blen;