diff options
Diffstat (limited to 'src/api/burn/balutil/balutil.cpp')
-rw-r--r-- | src/api/burn/balutil/balutil.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/api/burn/balutil/balutil.cpp b/src/api/burn/balutil/balutil.cpp index a77ff7d0..7f774b6c 100644 --- a/src/api/burn/balutil/balutil.cpp +++ b/src/api/burn/balutil/balutil.cpp | |||
@@ -38,21 +38,6 @@ static void MsgProc( | |||
38 | 38 | ||
39 | // prototypes | 39 | // prototypes |
40 | 40 | ||
41 | DAPI_(void) BalInitialize( | ||
42 | __in IBootstrapperEngine* pEngine | ||
43 | ) | ||
44 | { | ||
45 | pEngine->AddRef(); | ||
46 | |||
47 | ReleaseObject(vpEngine); | ||
48 | vpEngine = pEngine; | ||
49 | } | ||
50 | |||
51 | DAPI_(void) BalUninitialize() | ||
52 | { | ||
53 | ReleaseNullObject(vpEngine); | ||
54 | } | ||
55 | |||
56 | DAPI_(HRESULT) BootstrapperApplicationRun( | 41 | DAPI_(HRESULT) BootstrapperApplicationRun( |
57 | __in IBootstrapperApplication* pApplication | 42 | __in IBootstrapperApplication* pApplication |
58 | ) | 43 | ) |
@@ -86,7 +71,7 @@ DAPI_(HRESULT) BootstrapperApplicationRun( | |||
86 | BalInitialize(pEngine); | 71 | BalInitialize(pEngine); |
87 | fInitializedBal = TRUE; | 72 | fInitializedBal = TRUE; |
88 | 73 | ||
89 | BootstrapperApplicationDebuggerCheck(); | 74 | BalDebuggerCheck(); |
90 | 75 | ||
91 | hr = MsgPump(hBAPipe, pApplication, pEngine); | 76 | hr = MsgPump(hBAPipe, pApplication, pEngine); |
92 | BalExitOnFailure(hr, "Failed while pumping messages."); | 77 | BalExitOnFailure(hr, "Failed while pumping messages."); |
@@ -111,7 +96,22 @@ LExit: | |||
111 | return hr; | 96 | return hr; |
112 | } | 97 | } |
113 | 98 | ||
114 | DAPI_(VOID) BootstrapperApplicationDebuggerCheck() | 99 | DAPI_(void) BalInitialize( |
100 | __in IBootstrapperEngine* pEngine | ||
101 | ) | ||
102 | { | ||
103 | pEngine->AddRef(); | ||
104 | |||
105 | ReleaseObject(vpEngine); | ||
106 | vpEngine = pEngine; | ||
107 | } | ||
108 | |||
109 | DAPI_(void) BalUninitialize() | ||
110 | { | ||
111 | ReleaseNullObject(vpEngine); | ||
112 | } | ||
113 | |||
114 | DAPI_(VOID) BalDebuggerCheck() | ||
115 | { | 115 | { |
116 | HRESULT hr = S_OK; | 116 | HRESULT hr = S_OK; |
117 | HKEY hk = NULL; | 117 | HKEY hk = NULL; |