Skip to content

Commit b6c202c

Browse files
committed
[NETSH] Set proper error code for internal commands
1 parent 0f10593 commit b6c202c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

base/applications/network/netsh/context.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ UpCommand(
321321
if (pCurrentContext != pRootContext)
322322
pCurrentContext = pCurrentContext->pParentContext;
323323

324-
return 0;
324+
return ERROR_SUCCESS;
325325
}
326326

327327

@@ -337,7 +337,7 @@ ExitCommand(
337337
BOOL *pbDone)
338338
{
339339
*pbDone = TRUE;
340-
return 0;
340+
return ERROR_SUCCESS;
341341
}
342342

343343

@@ -352,7 +352,7 @@ RemCommand(
352352
LPCVOID pvData,
353353
BOOL *pbDone)
354354
{
355-
return 0;
355+
return ERROR_SUCCESS;
356356
}
357357

358358

@@ -391,7 +391,7 @@ PopdCommand(
391391

392392
HeapFree(GetProcessHeap(), 0, pEntry);
393393

394-
return 0;
394+
return ERROR_SUCCESS;
395395
}
396396

397397

@@ -427,7 +427,7 @@ PushdCommand(
427427
pContextStackHead = pEntry;
428428
}
429429

430-
return 0;
430+
return ERROR_SUCCESS;
431431
}
432432

433433

0 commit comments

Comments
 (0)