Skip to content

Commit bfee613

Browse files
committed
Windows Release win-10.0.22000.1
22000 is Windows 11
1 parent d2b00e7 commit bfee613

28 files changed

+268
-192
lines changed

src/framework/kmdf/src/core/fxchildlist.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ FxDeviceDescriptionEntry::operator new(
9191

9292
p = FxPoolAllocate2(FxDriverGlobals, POOL_FLAG_NON_PAGED, TotalDescriptionSize);
9393

94-
if (p != NULL) {
95-
RtlZeroMemory(p, TotalDescriptionSize);
96-
}
97-
9894
return p;
9995
}
10096

@@ -2704,8 +2700,6 @@ FxChildList::ProcessBusRelations(
27042700
goto Done;
27052701
}
27062702

2707-
RtlZeroMemory(pNewRelations, size);
2708-
27092703
if (pPriorRelations != NULL && pPriorRelations->Count > 0) {
27102704
DoTraceLevelMessage(
27112705
pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP,

src/framework/kmdf/src/core/tracing.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ Routine Description:
249249
return;
250250
}
251251

252-
RtlZeroMemory(pHeader, size);
253-
254252
//
255253
// Initialize the header.
256254
// Base will be where the IFR records are placed.

src/framework/kmdf/src/core/tracingifrreplay.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ Routine Description:
333333
status = STATUS_INSUFFICIENT_RESOURCES;
334334
goto Done;
335335
}
336-
RtlZeroMemory(offsetList, maxIfrRecords*sizeof(USHORT));
337336

338337
//
339338
// Check if the IFR records are valid and read them in the reverse order they

src/framework/shared/core/fxcxdeviceinitapi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ Routine Description:
836836
837837
Arguments:
838838
839-
DeviceInit A pointer to an opaque WDFDEVICE_INIT structure. The client
839+
DeviceInit - A pointer to an opaque WDFDEVICE_INIT structure. The client
840840
driver typically gets such a pointer in its EvtDriverDeviceAdd
841841
callback, and then passes it to the extension driver when calling
842842
extension-specific APIs.
@@ -852,7 +852,7 @@ Return Value:
852852
853853
STATUS_SUCCESS upon success.
854854
855-
STATUS_OBJECT_NAME_EXISTS (0x40000000) The extension driver has already
855+
STATUS_OBJECT_NAME_EXISTS (0x40000000) - The extension driver has already
856856
allocated a context of the same type. In this case, the call
857857
returns a pointer to the existing typed context and does not
858858
allocate a duplicated one.
@@ -968,7 +968,7 @@ Routine Description:
968968
969969
Arguments:
970970
971-
DeviceInit A pointer to an opaque WDFDEVICE_INIT structure. The client
971+
DeviceInit - A pointer to an opaque WDFDEVICE_INIT structure. The client
972972
driver typically gets such a pointer in its EvtDriverDeviceAdd
973973
callback, and then passes it to the extension driver when calling
974974
extension-specific APIs.

src/framework/shared/inc/private/common/fxpowerpolicystatemachine.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,16 @@ struct FxPowerPolicyMachine : public FxThreadedEventQueue {
10401040
}
10411041
}
10421042

1043+
VOID
1044+
SimulateDevicePowerRequiredForS0(
1045+
VOID
1046+
);
1047+
1048+
VOID
1049+
AcknowledgeS0(
1050+
VOID
1051+
);
1052+
10431053
public:
10441054
FxPowerPolicyEvent m_Queue[FxPowerPolicyEventQueueDepth];
10451055

src/framework/shared/irphandlers/io/km/fxioqueuekm.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,6 @@ Routine Description:
511511
return status;
512512
}
513513

514-
RtlZeroMemory(m_FwdProgContext, sizeof(FXIO_FORWARD_PROGRESS_CONTEXT));
515-
516514
//
517515
// Initialize the things which will not fail first
518516
//

src/framework/shared/irphandlers/pnp/devicepowerirptracker.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,19 @@ Return Value:
147147

148148
device = owner->m_PkgPnp->GetDevice();
149149

150-
#if (FX_CORE_MODE==FX_CORE_KERNEL_MODE)
151-
MICROSOFT_TELEMETRY_ASSERT_WITH_ARGS_KM(
152-
m_DIrpRequestedForSIrp == RequestDIrpReasonInvalid,
153-
device->GetDevicePowerPolicyState(),
154-
device->GetDevicePowerState(),
155-
"wdf01000.sys");
156-
#else
157-
MICROSOFT_TELEMETRY_ASSERT_WITH_ARGS(
158-
m_DIrpRequestedForSIrp == RequestDIrpReasonInvalid,
159-
"wudfx02000.dll",
160-
device->GetDevicePowerPolicyState(),
161-
device->GetDevicePowerState());
162-
#endif
150+
151+
152+
153+
154+
155+
156+
157+
158+
159+
160+
161+
162+
163163

164164
switch (Reason) {
165165

src/framework/shared/irphandlers/pnp/fxpkgpdo.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,9 +1446,6 @@ FxPkgPdo::_PnpQueryId(
14461446
if (pSrc != NULL) {
14471447
RtlCopyMemory(pBuffer, pSrc, cbLength);
14481448
}
1449-
else {
1450-
RtlZeroMemory(pBuffer, cbLength);
1451-
}
14521449

14531450
Irp->SetInformation((ULONG_PTR) pBuffer);
14541451
status = STATUS_SUCCESS;

src/framework/shared/irphandlers/pnp/fxpkgpnp.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,8 +1243,6 @@ Return Value:
12431243
goto Done;
12441244
}
12451245

1246-
RtlZeroMemory(pNewRelations, size);
1247-
12481246
//
12491247
// If there was an existing device relations structure, copy
12501248
// the entries to the new structure.
@@ -4141,7 +4139,7 @@ FxPkgPnp::SetDeviceFailedAttemptRestart(
41414139
// if parent doesn't support re-enumerate self interface
41424140
//
41434141
if (m_SetDeviceFailedAttemptRestartWorkItem != NULL) {
4144-
m_SetDeviceFailedAttemptRestartWorkItem->Enqueue(
4142+
m_SetDeviceFailedAttemptRestartWorkItem->TryToEnqueue(
41454143
ReenumerateAlways ? _WorkItemSetDeviceFailedRestartAlways :
41464144
_WorkItemSetDeviceFailedAttemptRestart, this);
41474145
return;

src/framework/shared/irphandlers/pnp/km/fxpkgpnpkm.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,6 @@ Return Value:
758758
goto Done;
759759
}
760760

761-
RtlZeroMemory(sleepStudy, sizeof(SLEEP_STUDY_INTERFACE));
762-
763761
//
764762
// m_SleepStudy may be accessed asynchronously, so first we must ensure
765763
// its initialized prior to assigning it to m_SleepStudy

0 commit comments

Comments
 (0)