mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
COMP: Fix for support of VS 8.0 beta 2
This commit is contained in:
@@ -1269,8 +1269,9 @@ int CMakeSetupDialog::CreateShortcut()
|
||||
}
|
||||
|
||||
// Ensure that the string consists of ANSI characters.
|
||||
WORD wsz[MAX_PATH];
|
||||
MultiByteToWideChar(CP_ACP, 0, link_name, -1, wsz, MAX_PATH);
|
||||
WORD wszAr[MAX_PATH];
|
||||
LPWSTR wsz = (LPWSTR)wszAr;
|
||||
MultiByteToWideChar(CP_ACP, 0, link_name, -1, (LPWSTR)(wsz), MAX_PATH);
|
||||
|
||||
// Save the shortcut via the IPersistFile::Save member function.
|
||||
hres = ppf->Save(wsz, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user