ieframe: Convert to integer without additional string buffer allocation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9de5b11430
commit
b771a4a488
|
@ -514,9 +514,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
|
|||
int iconindex;
|
||||
PROPSPEC ps;
|
||||
PROPVARIANT pv;
|
||||
char *iconindexastring = co_strdupWtoA(iconindexstring);
|
||||
sscanf(iconindexastring, "%d", &iconindex);
|
||||
CoTaskMemFree(iconindexastring);
|
||||
iconindex = strtolW(iconindexstring, NULL, 10);
|
||||
ps.ulKind = PRSPEC_PROPID;
|
||||
ps.u.propid = PID_IS_ICONINDEX;
|
||||
pv.vt = VT_I4;
|
||||
|
|
Loading…
Reference in New Issue