Skip to content

Commit 4e59db7

Browse files
committed
Fix warning C4703
1 parent b31d0b7 commit 4e59db7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ProcessHacker/itemtips.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,7 @@ VOID PhpFillRunningTasks(
607607
{
608608
static CLSID CLSID_TaskScheduler_I = { 0x0f87369f, 0xa4e5, 0x4cfc, { 0xbd, 0x3e, 0x73, 0xe6, 0x15, 0x45, 0x72, 0xdd } };
609609
static IID IID_ITaskService_I = { 0x2faba4c7, 0x4da9, 0x4013, { 0x96, 0x97, 0x20, 0xcc, 0x3f, 0xd4, 0x0f, 0x85 } };
610-
611-
ITaskService *taskService;
610+
ITaskService *taskService = NULL;
612611

613612
if (SUCCEEDED(PhGetClassObject(
614613
L"taskschd.dll",

ProcessHacker/prpgwmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ PPH_LIST PhpQueryWmiProviderHostProcess(
455455

456456
if (entry->NamespacePath && entry->ProviderName)
457457
{
458-
PPH_STRING fileName;
458+
PPH_STRING fileName = NULL;
459459

460460
if (SUCCEEDED(PhpQueryWmiProviderFileName(entry->NamespacePath, entry->ProviderName, &fileName)))
461461
{

0 commit comments

Comments
 (0)