André Hentschel nerv@dawncrow.de writes:
@@ -4092,8 +4092,6 @@ static BOOL WINSPOOL_GetPrinter_1(HKEY hkeyPrinter, PRINTER_INFO_1W *pi1, if(WINSPOOL_GetStringFromReg(hkeyPrinter, DescriptionW, ptr, left, &size)) { if(space && size <= left) { pi1->pComment = (LPWSTR)ptr;
ptr += size;
} else space = FALSE; *pcbNeeded += size;left -= size;
There's a clear pattern to the code here, you don't want to break it. I'd suggest redesigning the helper functions to avoid all this duplication.