diff options
| author | karlf <[email protected]> | 2016-08-11 13:28:13 -0700 |
|---|---|---|
| committer | karlf <[email protected]> | 2016-08-11 13:28:13 -0700 |
| commit | 96eb96dfb613e4c745db6bd1f53a92fe7e2290fc (patch) | |
| tree | ad5f3ede5cbcd6b598677ce41bcf8318471bdd92 /filesys/cdfs/fsctrl.c | |
| parent | 687b274aa38fd05c8c26e3068932121876d7f745 (diff) | |
Updated for "Windows 10 Anniversary Update" (Version 1607)
Diffstat (limited to 'filesys/cdfs/fsctrl.c')
| -rw-r--r-- | filesys/cdfs/fsctrl.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/filesys/cdfs/fsctrl.c b/filesys/cdfs/fsctrl.c index 8ff03dbd..8a113f04 100644 --- a/filesys/cdfs/fsctrl.c +++ b/filesys/cdfs/fsctrl.c @@ -641,6 +641,7 @@ Return Value: #ifdef CDFS_TELEMETRY_DATA GUID VolumeGuid; + GUID VolumeCorrelationId = { 0 }; #endif PAGED_CODE(); @@ -898,6 +899,19 @@ Return Value: RtlCopyMemory( &CdTelemetryData.VolumeGuid, &VolumeGuid, sizeof(GUID) ); } + // + // Initialize the correlation ID. + // + + if (NT_SUCCESS( FsRtlVolumeDeviceToCorrelationId( Vcb->TargetDeviceObject, &VolumeCorrelationId ) )) { + + // + // Stash a copy away in the VCB. + // + + RtlCopyMemory( &Vcb->VolumeCorrelationId, &VolumeCorrelationId, sizeof( GUID ) ); + } + #endif // CDFS_TELEMETRY_DATA // Lock object is acquired and released using internal state @@ -1229,8 +1243,7 @@ Return Value: // Send Telemetry // - RtlCopyMemory( &VolumeGuid, &CdTelemetryData.VolumeGuid, sizeof(GUID) ); - CdTelemetryMountSafe(&VolumeGuid, STATUS_SUCCESS, Vcb); + CdTelemetryMountSafe( &VolumeCorrelationId, STATUS_SUCCESS, Vcb ); #endif |
