Skip Menu |

This queue is for tickets about the Win32-Daemon CPAN distribution.

Report information
The Basics
Id: 79840
Status: new
Priority: 0/
Queue: Win32-Daemon

People
Owner: Nobody in particular
Requestors: sam [...] hellosam.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 20110117
Fixed in: (no value)



Subject: CreateService cannot handle more than one dependencies specified
Repro step: 1. Win32::Daemon::CreateService({ dependencies => [qw(AFD RPCSS Tcpip)], ...}); 2. Check the service created, dependency settings is not correct. To be exact, the unfolding code is wrong (same problem in ConfigureService also): for( DWORD dwIndex = 0; dwIndex < dwCount; dwIndex++ ) { _tcscpy( pszBuffer, ARRAY_GET_PV( pAv, dwIndex ) ); // _tcslen(pszBuffer) does not consider the string already in szDependencies // Prehaps more correct to say &pszBuffer[_tcslen( pszBuffer )+1] pszBuffer = &szDependencies[ _tcslen( pszBuffer ) + 1 ]; }