*** empty log message ***

svn path=/trunk/boinc/; revision=12248
This commit is contained in:
David Anderson 2007-03-19 23:00:46 +00:00
parent fce4ca2637
commit 5d97d4546d
3 changed files with 15 additions and 28 deletions

View File

@ -2648,3 +2648,11 @@ David 19 Mar 2007
lib/
boinc_cmd.C
prefs.C,h
David 19 Mar 2007
- compile fixes
client/
hostinfo_win.C
win_build/
boinc_cli_curl.vcproj

View File

@ -461,7 +461,8 @@ BOOL is_processor_feature_supported(DWORD feature) {
// the processor, use the Linux CPU processor feature descriptions.
//
int get_processor_info(
char* p_vendor, int p_vendor_size, char* p_model, int p_model_size
char* p_vendor, int p_vendor_size, char* p_model, int p_model_size,
char* p_features, int p_features_size
)
{
char vendorName[256], processorName[256], identifierName[256], capabilities[256], temp_model[256];
@ -564,7 +565,7 @@ int get_processor_info(
// Merge all the seperate pieces of information into one.
snprintf(p_model, p_model_size, "%s [%s] [%s]", temp_model, identifierName);
p_model[p_model_size-1] = 0;
strlcpy(p_features, sizeof(p_features), capabilities);
strlcpy(p_features, capabilities, p_features_size);
RegCloseKey(hKey);
@ -641,7 +642,9 @@ int HOST_INFO::get_host_info() {
// Detect proccessor make and model.
get_processor_info(
p_vendor, sizeof(p_vendor), p_model, sizeof(p_model)
p_vendor, sizeof(p_vendor),
p_model, sizeof(p_model),
p_features, sizeof(p_features)
);
// Detect the number of CPUs

View File

@ -667,32 +667,8 @@
>
</File>
<File
RelativePath="..\Client\win\hostinfo_win.cpp"
RelativePath="..\client\hostinfo_win.C"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
BasicRuntimeChecks="3"
BrowseInformation="1"
CompileAs="2"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\client\http_curl.C"