mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 17:45:06 +00:00
[APPWIZ] NewLinkHereA(): Just call NewLinkHereW after the UNICODE conversion.
This commit is contained in:
parent
d9a287e9a5
commit
4ba56962e6
1 changed files with 3 additions and 6 deletions
|
@ -635,7 +635,7 @@ CALLBACK
|
||||||
NewLinkHereW(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
|
NewLinkHereW(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
|
||||||
{
|
{
|
||||||
InitCommonControls();
|
InitCommonControls();
|
||||||
return ShowCreateShortcutWizard(hwndCPl, (LPWSTR)lParam1);
|
return ShowCreateShortcutWizard(hwndCPl, (LPCWSTR)lParam1);
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG
|
LONG
|
||||||
|
@ -644,10 +644,7 @@ NewLinkHereA(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
|
||||||
{
|
{
|
||||||
WCHAR szFile[MAX_PATH];
|
WCHAR szFile[MAX_PATH];
|
||||||
|
|
||||||
if (MultiByteToWideChar(CP_ACP, 0, (LPSTR)lParam1, -1, szFile, _countof(szFile)))
|
if (MultiByteToWideChar(CP_ACP, 0, (LPCSTR)lParam1, -1, szFile, _countof(szFile)))
|
||||||
{
|
return NewLinkHereW(hwndCPl, uMsg, (LPARAM)szFile, lParam2);
|
||||||
InitCommonControls();
|
|
||||||
return ShowCreateShortcutWizard(hwndCPl, szFile);
|
|
||||||
}
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue