static UINT SHELL_Execute16(const char *lpCmd, void *env, BOOL shWait,
LPSHELLEXECUTEINFOA psei, LPSHELLEXECUTEINFOA psei_out)
{
- UINT ret = WinExec16(lpCmd, sei->nShow);
- sei->hInstApp = HINSTANCE_32(ret);
+ UINT ret = WinExec16(lpCmd, psei->nShow);
+ psei->hInstApp = HINSTANCE_32(ret);
return ret;
}
BOOL ret;
int l;
- TRACE("(%p)->execute(%x)\n", This, psei);
+ TRACE("(%p)->execute(%p)\n", This, psei);
if (!psei)
return E_INVALIDARG;
l = 1 + MultiByteToWideChar(CP_ACP, 0, pcpanel->szName, -1, path+1, MAX_PATH);
/* pass applet name to Control_RunDLL to distinguish between applets in one .cpl file */
- lstrcpyW(path+1, L"\" ");
- l += 2;
+ path[++l] = '"';
+ path[++l] = ' ';
MultiByteToWideChar(CP_ACP, 0, pcpanel->szName+pcpanel->offsDispName, -1, path+l, MAX_PATH);
char path[MAX_PATH];
BOOL ret;
- TRACE("(%p)->execute(%x)\n", This, psei);
+ TRACE("(%p)->execute(%p)\n", This, psei);
if (!psei)
return E_INVALIDARG;
if (SFGAO_LINK & *pdwAttributes) {
char ext[MAX_PATH];
- if (!_ILGetExtension(pidl, ext, MAX_PATH) || stricmp(ext, "lnk"))
+ if (!_ILGetExtension(pidl, ext, MAX_PATH) || strcasecmp(ext, "lnk"))
*pdwAttributes &= ~SFGAO_READONLY;
}
} else {