From 8799d4f7ccf3b3767c155d29f15cecd142d0db99 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sun, 18 Aug 2002 12:33:41 +0000 Subject: [PATCH] fix GetPrinterDataEx() to work with registry subkeys using a depth > 1 --- source/printing/nt_printing.c | 2 +- source/registry/reg_frontend.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index d51d3bc1bbc..6cfc9aac5aa 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -2626,7 +2626,7 @@ static int unpack_values(NT_PRINTER_DATA *printer_data, char *buf, int buflen) * Should only be one '\' in the string returned. */ - str = strchr( string, '\\'); + str = strrchr( string, '\\'); /* Put in "PrinterDriverData" is no key specified */ diff --git a/source/registry/reg_frontend.c b/source/registry/reg_frontend.c index 994f03cf5ac..f31f6759971 100644 --- a/source/registry/reg_frontend.c +++ b/source/registry/reg_frontend.c @@ -332,7 +332,7 @@ REGISTRY_VALUE* regval_ctr_getvalue( REGVAL_CTR *ctr, char *name ) /* search for the value */ for ( i=0; inum_values; i++ ) { - if ( strequal( ctr->values[i]->valuename, name ) == 0) + if ( strequal( ctr->values[i]->valuename, name ) ) return ctr->values[i]; } -- 2.11.4.GIT