if(registry_get_handle(&hKey, 0, key_options) != ERROR_SUCCESS ||
RegQueryValueExW(hKey, var_framerect, 0, NULL, (LPBYTE)rc, &size) !=
ERROR_SUCCESS || size != sizeof(RECT))
- {
- rc->top = 0;
- rc->left = 0;
- rc->bottom = 300;
- rc->right = 600;
- }
+ SetRect(rc, 0, 0, 600, 300);
RegCloseKey(hKey);
}
if(!lstrcmpiW(pFiles[i], newFile))
{
int j;
- for(j = 0; pFiles[j] && j < i; j++)
+ for(j = 0; j < i; j++)
{
pFiles[i-j] = pFiles[i-j-1];
}