rid warnings from modern MSVC

This commit is contained in:
Doug MacEachern committed 2007-06-27 01:10:12 +00:00
1 parent e710e27948
commit 3e064dfeb7
8 files changed
+36 -23

No files matched your search

+3 -3
View File
@@ -115,7 +115,7 @@ JNIEXPORT jlong SIGAR_JNI(win32_RegistryKey_RegOpenKey)
/* required under IBM/WebSphere 4.0 for certain keys */
if (lpSubkey[len] != '\0') {
copy = wcsdup(lpSubkey);
copy = _wcsdup(lpSubkey);
copy[len] = '\0';
}
else {
@@ -143,7 +143,7 @@ JNIEXPORT jint SIGAR_JNI(win32_RegistryKey_RegQueryIntValue)
LONG lErr;
/* required under IBM/WebSphere 4.0 for certain keys */
if (lpValueName[len] != '\0') {
copy = wcsdup(lpValueName);
copy = _wcsdup(lpValueName);
copy[len] = '\0';
}
else {
@@ -206,7 +206,7 @@ JNIEXPORT jstring SIGAR_JNI(win32_RegistryKey_RegQueryStringValue)
LONG lErr;
/* required under IBM/WebSphere 4.0 for certain keys */
if (lpValueName[len] != '\0') {
copy = wcsdup(lpValueName);
copy = _wcsdup(lpValueName);
copy[len] = '\0';
}
else {