aboutsummaryrefslogtreecommitdiff
path: root/src/balutil
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-08-01 11:49:05 -0600
committerSean Hall <r.sean.hall@gmail.com>2020-08-09 10:47:30 -0600
commit522458420df786eb653009d616127e1060b3ab9b (patch)
tree0a705ac7397f1fcce05f0dcc4aa9fb78a173f25e /src/balutil
parenta37013d41f0702cbdf2aee6dce95d26dafc069b4 (diff)
downloadwix-522458420df786eb653009d616127e1060b3ab9b.tar.gz
wix-522458420df786eb653009d616127e1060b3ab9b.tar.bz2
wix-522458420df786eb653009d616127e1060b3ab9b.zip
WIXFEAT:5319 Remove IVariables since they were a leaky abstraction.
Diffstat (limited to 'src/balutil')
-rw-r--r--src/balutil/balutil.cpp4
-rw-r--r--src/balutil/inc/balutil.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/balutil/balutil.cpp b/src/balutil/balutil.cpp
index ebfaede4..faca70f5 100644
--- a/src/balutil/balutil.cpp
+++ b/src/balutil/balutil.cpp
@@ -167,7 +167,7 @@ LExit:
167} 167}
168 168
169 169
170DAPI_(BOOL) BalStringVariableExists( 170DAPI_(BOOL) BalVariableExists(
171 __in_z LPCWSTR wzVariable 171 __in_z LPCWSTR wzVariable
172 ) 172 )
173{ 173{
@@ -183,7 +183,7 @@ DAPI_(BOOL) BalStringVariableExists(
183 hr = vpEngine->GetVariableString(wzVariable, NULL, &cch); 183 hr = vpEngine->GetVariableString(wzVariable, NULL, &cch);
184 184
185LExit: 185LExit:
186 return E_MOREDATA == hr; // string exists only if there are more than zero characters in the variable. 186 return E_NOTFOUND != hr;
187} 187}
188 188
189 189
diff --git a/src/balutil/inc/balutil.h b/src/balutil/inc/balutil.h
index b718e48b..affa4925 100644
--- a/src/balutil/inc/balutil.h
+++ b/src/balutil/inc/balutil.h
@@ -108,10 +108,10 @@ DAPI_(HRESULT) BalSetNumericVariable(
108 ); 108 );
109 109
110/******************************************************************* 110/*******************************************************************
111BalStringVariableExists - checks if a string variable exists in the engine. 111BalVariableExists - checks if a variable exists in the engine.
112 112
113********************************************************************/ 113********************************************************************/
114DAPI_(BOOL) BalStringVariableExists( 114DAPI_(BOOL) BalVariableExists(
115 __in_z LPCWSTR wzVariable 115 __in_z LPCWSTR wzVariable
116 ); 116 );
117 117