summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeihsun Yeh <[email protected]>2018-08-27 11:13:03 -0700
committerPeihsun Yeh <[email protected]>2018-08-27 11:13:03 -0700
commit28c11cc0153286544abdb66eac22c760b73a4155 (patch)
tree4118ceefea15039d93cb18ed85686fb0cdd5cd55
parent6930fc413a7a19ce04fb61fab5db7e71729fde18 (diff)
clarifying comments, removing some also
-rw-r--r--general/SimpleMediaSource/SimpleMediaSourceDriver/Device.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/general/SimpleMediaSource/SimpleMediaSourceDriver/Device.c b/general/SimpleMediaSource/SimpleMediaSourceDriver/Device.c
index 133d55eb..083cf3c7 100644
--- a/general/SimpleMediaSource/SimpleMediaSourceDriver/Device.c
+++ b/general/SimpleMediaSource/SimpleMediaSourceDriver/Device.c
@@ -48,7 +48,7 @@ Return Value:
WDFDEVICE device;
NTSTATUS status;
UNICODE_STRING szReference;
- RtlInitUnicodeString(&szReference, L"CustomCameraSource");
+ RtlInitUnicodeString(&szReference, L"CustomCameraSource"); // Needs to match the ReferenceString in INF
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&deviceAttributes, DEVICE_CONTEXT);
@@ -82,10 +82,6 @@ Return Value:
);
if (NT_SUCCESS(status)) {
- //
- // Create a device interface so that application can find and talk
- // to us.
- //
status = WdfDeviceCreateDeviceInterface(
device,
&CAPTURE_CATEGORY,
@@ -94,10 +90,6 @@ Return Value:
}
if (NT_SUCCESS(status)) {
- //
- // Create a device interface so that application can find and talk
- // to us.
- //
status = WdfDeviceCreateDeviceInterface(
device,
&VIDEO_CATEGORY,