Index: ui/gfx/icon_util.cc |
=================================================================== |
--- ui/gfx/icon_util.cc (revision 112717) |
+++ ui/gfx/icon_util.cc (working copy) |
@@ -243,7 +243,7 @@ |
base::win::ScopedHandle icon_file(::CreateFile(icon_path.value().c_str(), |
GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL)); |
- if (icon_file.Get() == INVALID_HANDLE_VALUE) |
+ if (icon_file.Get() == INVALID_HANDLE_VALUE || icon_file.Get() == NULL) |
grt (UTC plus 2)
2011/12/05 14:48:27
what you really want here is:
if (!icon_file.IsVal
SteveT
2011/12/05 15:24:46
Cool, thanks.
|
return false; |
// Creating a set of bitmaps corresponding to the icon images we'll end up |