From 1cb4334fb9d7f7ec930f6a11e730718f903b904c Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 11 Jul 2005 18:37:15 +0000 Subject: r8325: * punt....don't normalize the printer name in the RegCreateKey(). Print Migrator now works as long as the addprinter command can handle the name (This used to be commit 61f14cdcbd3b183caf6172d5b60b0888fc4363f7) --- source3/registry/reg_printing.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/registry') diff --git a/source3/registry/reg_printing.c b/source3/registry/reg_printing.c index b1fdcea09c..0fd1c488d1 100644 --- a/source3/registry/reg_printing.c +++ b/source3/registry/reg_printing.c @@ -256,8 +256,6 @@ static int key_printers_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys ) reg_split_path( printers_key, &printername, &printerdatakey ); - alpha_strcpy( sharename, printername, "", sizeof(sharename)-1); - if ( find_service(sharename) == -1 || !W_ERROR_IS_OK( get_a_printer(NULL, &printer, 2, sharename) ) ) { @@ -305,7 +303,7 @@ static BOOL add_printers_by_registry( REGSUBKEY_CTR *subkeys ) /* just verify a valied snum for now */ if ( snum == -1 ) { fstrcpy( info2.printername, printername ); - alpha_strcpy( info2.sharename, printername, "", sizeof(info2.sharename)-1); + fstrcpy( info2.sharename, printername ); if ( !add_printer_hook( NULL, &printer ) ) { DEBUG(0,("add_printers_by_registry: Failed to add printer [%s]\n", printername)); -- cgit