Update of /cvsroot/audacity/audacity-src/src/effects/VST
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1741/effects/VST
Modified Files:
LoadVST.cpp
Log Message:
Fixing problems found during static analysis (VS Team System code analysis).
Index: LoadVST.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/VST/LoadVST.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- LoadVST.cpp 24 May 2009 11:31:06 -0000 1.3
+++ LoadVST.cpp 2 Jun 2009 05:03:15 -0000 1.4
@@ -240,13 +240,13 @@
#elif defined(__WXMSW__)
TCHAR dpath[MAX_PATH];
TCHAR tpath[MAX_PATH];
- DWORD len = sizeof(tpath);
+ DWORD len = WXSIZEOF(tpath);
// Setup the default VST path.
dpath[0] = '\0';
ExpandEnvironmentStrings(_T("%ProgramFiles%\\Steinberg\\VSTPlugins"),
dpath,
- sizeof(dpath));
+ WXSIZEOF(dpath));
// Check registry for the real path
if (SHRegGetUSValue(_T("Software\\VST"),
@@ -258,7 +258,7 @@
dpath,
(DWORD) _tcslen(dpath)) == ERROR_SUCCESS) {
tpath[len] = 0;
- ExpandEnvironmentStrings(tpath, dpath, sizeof(dpath));
+ ExpandEnvironmentStrings(tpath, dpath, WXSIZEOF(dpath));
wxGetApp().AddUniquePathToPathList(LAT1CTOWX(dpath), pathList);
}
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs