x4 = atoiW(ptr + 1);
/* FIXME: byte-order dependent? */
*ms = x1 << 16 | x2;
- *ls = x3 << 16 | x4;
+ if (ls) *ls = x3 << 16 | x4;
}
/* Fills in sig with the values from the Signature table, where name is the
if (hFind != INVALID_HANDLE_VALUE)
{
if (findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY &&
- lstrcmpW(findData.cFileName, szDot) &&
- lstrcmpW(findData.cFileName, szDotDot))
+ strcmpW( findData.cFileName, szDot ) &&
+ strcmpW( findData.cFileName, szDotDot ))
{
lstrcpyW(subpath, dir);
PathAppendW(subpath, findData.cFileName);
while (rc == ERROR_SUCCESS && !*appValue &&
FindNextFileW(hFind, &findData) != 0)
{
- if (!lstrcmpW(findData.cFileName, szDot) ||
- !lstrcmpW(findData.cFileName, szDotDot))
+ if (!strcmpW( findData.cFileName, szDot ) ||
+ !strcmpW( findData.cFileName, szDotDot ))
continue;
lstrcpyW(subpath, dir);