From 8deeffb615244c62a0c94ea99d01ece88b1caf09 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 27 Apr 2021 22:26:16 -0500 Subject: Integrate size_t and OnPlanPackageBegin changes in Burn headers. --- src/balutil/balutil.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/balutil/balutil.cpp') diff --git a/src/balutil/balutil.cpp b/src/balutil/balutil.cpp index faca70f5..7a638219 100644 --- a/src/balutil/balutil.cpp +++ b/src/balutil/balutil.cpp @@ -96,7 +96,7 @@ DAPI_(HRESULT) BalFormatString( ) { HRESULT hr = S_OK; - DWORD cch = 0; + SIZE_T cch = 0; if (!vpEngine) { @@ -106,7 +106,7 @@ DAPI_(HRESULT) BalFormatString( if (*psczOut) { - hr = StrMaxLength(*psczOut, reinterpret_cast(&cch)); + hr = StrMaxLength(*psczOut, &cch); ExitOnFailure(hr, "Failed to determine length of value."); } @@ -172,7 +172,7 @@ DAPI_(BOOL) BalVariableExists( ) { HRESULT hr = S_OK; - DWORD cch = 0; + SIZE_T cch = 0; if (!vpEngine) { @@ -194,7 +194,7 @@ DAPI_(HRESULT) BalGetStringVariable( ) { HRESULT hr = S_OK; - DWORD cch = 0; + SIZE_T cch = 0; if (!vpEngine) { @@ -204,7 +204,7 @@ DAPI_(HRESULT) BalGetStringVariable( if (*psczValue) { - hr = StrMaxLength(*psczValue, reinterpret_cast(&cch)); + hr = StrMaxLength(*psczValue, &cch); ExitOnFailure(hr, "Failed to determine length of value."); } -- cgit v1.2.3-55-g6feb