File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
#include < windows.h>
6
6
7
7
AEffect* VSTPlugin::loadEffect () {
8
- AEffect *plugin = NULL ;
8
+ AEffect *plugin = nullptr ;
9
9
10
10
wchar_t *wpath;
11
11
os_utf8_to_wcs_ptr (pluginPath.c_str (), 0 , &wpath);
12
12
dllHandle = LoadLibraryW (wpath);
13
13
bfree (wpath);
14
- if (dllHandle == NULL ) {
14
+ if (dllHandle == nullptr ) {
15
15
printf (" Failed trying to load VST from '%s', error %d\n " ,
16
16
pluginPath, GetLastError ());
17
- return NULL ;
17
+ return nullptr ;
18
18
}
19
19
20
20
vstPluginMain mainEntryPoint =
21
21
(vstPluginMain)GetProcAddress (dllHandle, " VSTPluginMain" );
22
22
23
23
if (!mainEntryPoint) {
24
- return NULL ;
24
+ return nullptr ;
25
25
}
26
26
27
- // Instantiate the plugin
27
+ // Instantiate the plug-in
28
28
plugin = mainEntryPoint (hostCallback_static);
29
29
plugin->user = this ;
30
30
return plugin;
@@ -33,6 +33,6 @@ AEffect* VSTPlugin::loadEffect() {
33
33
void VSTPlugin::unloadLibrary () {
34
34
if (dllHandle) {
35
35
FreeLibrary (dllHandle);
36
- dllHandle = NULL ;
36
+ dllHandle = nullptr ;
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments