mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
- Fix few more wine tests for services; return correct param values for GetServiceDisplayNameW and GetServiceKeyNameW when service name is not found.
svn path=/trunk/; revision=40017
This commit is contained in:
parent
aa0f6ce8d5
commit
a1fee90219
1 changed files with 6 additions and 6 deletions
|
@ -2772,11 +2772,11 @@ DWORD RGetServiceDisplayNameW(
|
|||
{
|
||||
DPRINT1("Could not find a service!\n");
|
||||
|
||||
/* If the service could not be found and lpcchBuffer is 0, windows
|
||||
puts null in lpDisplayName and puts 1 in lpcchBuffer */
|
||||
if (*lpcchBuffer == 0)
|
||||
/* If the service could not be found and lpcchBuffer is less than 2, windows
|
||||
puts null in lpDisplayName and puts 2 in lpcchBuffer */
|
||||
if (*lpcchBuffer < 2)
|
||||
{
|
||||
*lpcchBuffer = 1;
|
||||
*lpcchBuffer = 2;
|
||||
if (lpDisplayName != NULL)
|
||||
{
|
||||
*lpDisplayName = '\0';
|
||||
|
@ -2846,9 +2846,9 @@ DWORD RGetServiceKeyNameW(
|
|||
{
|
||||
DPRINT1("Could not find a service!\n");
|
||||
|
||||
/* If the service could not be found and lpcchBuffer is 0, windows
|
||||
/* If the service could not be found and lpcchBuffer is less than 2, windows
|
||||
puts null in lpDisplayName and puts 2 in lpcchBuffer */
|
||||
if (*lpcchBuffer == 0)
|
||||
if (*lpcchBuffer < 2)
|
||||
{
|
||||
*lpcchBuffer = 2;
|
||||
if (lpServiceName != NULL)
|
||||
|
|
Loading…
Reference in a new issue