| Index: printing/backend/win_helper.cc
|
| diff --git a/printing/backend/win_helper.cc b/printing/backend/win_helper.cc
|
| index cfc1a5821528db9ee598049526b97291663f68e8..a16228b703da699259bc962c1069665487632c6c 100644
|
| --- a/printing/backend/win_helper.cc
|
| +++ b/printing/backend/win_helper.cc
|
| @@ -431,7 +431,10 @@ scoped_ptr<DEVMODE[]> CreateDevModeWithColor(HANDLE printer,
|
| const base::string16& printer_name,
|
| bool color) {
|
| scoped_ptr<DEVMODE[]> default = CreateDevMode(printer, NULL);
|
| - if (default && (default.get()->dmFields & DM_COLOR) &&
|
| + if (!default)
|
| + return default.Pass();
|
| +
|
| + if ((default.get()->dmFields & DM_COLOR) &&
|
| ((default.get()->dmColor == DMCOLOR_COLOR) == color)) {
|
| return default.Pass();
|
| }
|
|
|