зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1124029
- Suppress different __unaligned qualifiers warnings. r=froydnj
--HG-- extra : source : e854844083bcb065d649eea337c558f05291a647 extra : histedit_source : 9563e1ccb80018ade7b7f21f563bdf6954f13e35
This commit is contained in:
Родитель
e7d167eb4f
Коммит
cdc6637443
|
@ -154,7 +154,8 @@ private:
|
|||
HRESULT hr;
|
||||
if (attributes & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
// We have a directory so we should open the directory itself.
|
||||
ITEMIDLIST* dir = ILCreateFromPathW(mResolvedPath.get());
|
||||
ITEMIDLIST* dir =
|
||||
static_cast<ITEMIDLIST*>(ILCreateFromPathW(mResolvedPath.get()));
|
||||
if (!dir) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
@ -177,13 +178,15 @@ private:
|
|||
PathRemoveFileSpecW(parentDirectoryPath);
|
||||
|
||||
// We have a file so we should open the parent directory.
|
||||
ITEMIDLIST* dir = ILCreateFromPathW(parentDirectoryPath);
|
||||
ITEMIDLIST* dir =
|
||||
static_cast<ITEMIDLIST*>(ILCreateFromPathW(parentDirectoryPath));
|
||||
if (!dir) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Set the item in the directory to select to the file we want to reveal.
|
||||
ITEMIDLIST* item = ILCreateFromPathW(mResolvedPath.get());
|
||||
ITEMIDLIST* item =
|
||||
static_cast<ITEMIDLIST*>(ILCreateFromPathW(mResolvedPath.get()));
|
||||
if (!item) {
|
||||
CoTaskMemFree(dir);
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче