On Thu Apr 27 10:39:28 2023 +0000, Huw Davies wrote:
Is there more code to go in here or could it be simplified to:
if (!datatype || ((printer->info->attributes & PRINTER_ATTRIBUTE_RAW_ONLY) && wcsicmp(datatype, L"RAW"))) { TRACE("non RAW datatype specified on RAW-only printer (%s)\n", debugstr_w(datatype)); SetLastError(ERROR_INVALID_DATATYPE); return 0; }
No, I have changed it as suggested. Thanks.