Commit be90e005 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

New function: _ILGetExtension.

parent a9a4f4e5
......@@ -980,6 +980,28 @@ BOOL32 WINAPI _ILGetFileSize (LPCITEMIDLIST pidl, LPSTR pOut, UINT32 uOutSize)
sprintf(stemp,"%lu", pdata->u.file.dwFileSize);
return GetNumberFormat32A(LOCALE_USER_DEFAULT, 0, stemp, NULL, pOut, uOutSize);
}
BOOL32 WINAPI _ILGetExtension (LPCITEMIDLIST pidl, LPSTR pOut, UINT32 uOutSize)
{ char pTemp[MAX_PATH];
int i;
TRACE(pidl,"pidl=%p\n",pidl);
if ( ! _ILGetValueText(pidl, pTemp, MAX_PATH))
{ return FALSE;
}
for (i=0; pTemp[i]!='.' && pTemp[i];i++);
if (!pTemp[i])
return FALSE;
strncpy(pOut, &pTemp[i], uOutSize);
TRACE(pidl,"%s\n",pOut);
return TRUE;
}
/**************************************************************************
* IDLList "Item ID List List"
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment