summaryrefslogtreecommitdiff
path: root/src/md/enc/liteweightstgdbrw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/md/enc/liteweightstgdbrw.cpp')
-rw-r--r--src/md/enc/liteweightstgdbrw.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/md/enc/liteweightstgdbrw.cpp b/src/md/enc/liteweightstgdbrw.cpp
index 9e75ae7635..d5063f53c8 100644
--- a/src/md/enc/liteweightstgdbrw.cpp
+++ b/src/md/enc/liteweightstgdbrw.cpp
@@ -1127,14 +1127,16 @@ CLiteWeightStgdbRW::GetRawStreamInfo(
STORAGEHEADER sHdr; // Header for the storage.
PSTORAGESTREAM pStream; // Pointer to each stream.
ULONG i; // Loop control.
+ void *pData;
+ ULONG cbData;
#ifdef FEATURE_METADATA_CUSTOM_DATA_SOURCE
if (m_pStgIO == NULL)
IfFailGo(COR_E_NOTSUPPORTED);
#endif
- void *pData = m_pStgIO->m_pData;
- ULONG cbData = m_pStgIO->m_cbData;
+ pData = m_pStgIO->m_pData;
+ cbData = m_pStgIO->m_cbData;
// Validate the signature of the format, or it isn't ours.
IfFailGo(MDFormat::VerifySignature((PSTORAGESIGNATURE) pData, cbData));