summaryrefslogtreecommitdiff
path: root/src/coreclr
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2016-02-01 10:48:17 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2016-02-01 10:48:17 -0800
commita2cfe7239352d1934037965522fe5dd695873a3e (patch)
treee6ba19fd9a6df1b70dc766ff69b34b860e064001 /src/coreclr
parent332bbcdc6226f7d8d63e49fa53d30e1a53839f7f (diff)
downloadcoreclr-a2cfe7239352d1934037965522fe5dd695873a3e.tar.gz
coreclr-a2cfe7239352d1934037965522fe5dd695873a3e.tar.bz2
coreclr-a2cfe7239352d1934037965522fe5dd695873a3e.zip
Fix OACR errors for ProjectK
[tfs-changeset: 1570939]
Diffstat (limited to 'src/coreclr')
-rw-r--r--src/coreclr/hosts/coreconsole/coreconsole.cpp8
-rw-r--r--src/coreclr/hosts/corerun/corerun.cpp6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/coreclr/hosts/coreconsole/coreconsole.cpp b/src/coreclr/hosts/coreconsole/coreconsole.cpp
index 603526a5a0..1533dff88e 100644
--- a/src/coreclr/hosts/coreconsole/coreconsole.cpp
+++ b/src/coreclr/hosts/coreconsole/coreconsole.cpp
@@ -185,7 +185,7 @@ public:
}
}
- bool TPAListContainsFile(wchar_t* fileNameWithoutExtension, wchar_t** rgTPAExtensions, int countExtensions)
+ bool TPAListContainsFile(_In_z_ wchar_t* fileNameWithoutExtension, _In_reads_(countExtensions) wchar_t** rgTPAExtensions, int countExtensions)
{
if (!m_tpaList.CStr()) return false;
@@ -205,7 +205,7 @@ public:
return false;
}
- void RemoveExtensionAndNi(wchar_t* fileName)
+ void RemoveExtensionAndNi(_In_z_ wchar_t* fileName)
{
// Remove extension, if it exists
wchar_t* extension = wcsrchr(fileName, W('.'));
@@ -225,7 +225,7 @@ public:
}
}
- void AddFilesFromDirectoryToTPAList(wchar_t* targetPath, wchar_t** rgTPAExtensions, int countExtensions)
+ void AddFilesFromDirectoryToTPAList(_In_z_ wchar_t* targetPath, _In_reads_(countExtensions) wchar_t** rgTPAExtensions, int countExtensions)
{
*m_log << W("Adding assemblies from ") << targetPath << W(" to the TPA list") << Logger::endl;
wchar_t assemblyPath[MAX_LONGPATH];
@@ -360,7 +360,7 @@ public:
};
-bool TryRun(const int argc, const wchar_t* argv[], Logger &log, const bool verbose, const bool waitForDebugger, DWORD &exitCode, wchar_t* programPath)
+bool TryRun(const int argc, const wchar_t* argv[], Logger &log, const bool verbose, const bool waitForDebugger, DWORD &exitCode, _In_z_ wchar_t* programPath)
{
// Assume failure
exitCode = -1;
diff --git a/src/coreclr/hosts/corerun/corerun.cpp b/src/coreclr/hosts/corerun/corerun.cpp
index 7b1f81ed9a..9a7ed4214c 100644
--- a/src/coreclr/hosts/corerun/corerun.cpp
+++ b/src/coreclr/hosts/corerun/corerun.cpp
@@ -208,7 +208,7 @@ public:
}
}
- bool TPAListContainsFile(wchar_t* fileNameWithoutExtension, wchar_t** rgTPAExtensions, int countExtensions)
+ bool TPAListContainsFile(_In_z_ wchar_t* fileNameWithoutExtension, _In_reads_(countExtensions) wchar_t** rgTPAExtensions, int countExtensions)
{
if (!m_tpaList.CStr()) return false;
@@ -228,7 +228,7 @@ public:
return false;
}
- void RemoveExtensionAndNi(wchar_t* fileName)
+ void RemoveExtensionAndNi(_In_z_ wchar_t* fileName)
{
// Remove extension, if it exists
wchar_t* extension = wcsrchr(fileName, W('.'));
@@ -248,7 +248,7 @@ public:
}
}
- void AddFilesFromDirectoryToTPAList(wchar_t* targetPath, wchar_t** rgTPAExtensions, int countExtensions)
+ void AddFilesFromDirectoryToTPAList(_In_z_ wchar_t* targetPath, _In_reads_(countExtensions) wchar_t** rgTPAExtensions, int countExtensions)
{
*m_log << W("Adding assemblies from ") << targetPath << W(" to the TPA list") << Logger::endl;
wchar_t assemblyPath[MAX_LONGPATH];