mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024048: "Basic Runtime Checks" option of VS projects should be equal to "RTC1"
tolreached initialized (src\ChFi3d\ChFi3d_Builder_6.cxx); LocalTransition initialized in deb case (src\HatchGen\HatchGen_Hatcher.gxx); vprev initialized (src\Blend\Blend_Walking_3.gxx); uprev initialized (src\BRepBlend\BRepBlend_SurfRstLineBuilder.cxx); lxp initialized (src\Interface\Interface_FloatWriter.cxx) pBuff initialized (src\OSD\OSD_Process.cxx) aPrefix initialized (src\RWStepBasic\RWStepBasic_RWSiUnitAndPlaneAngleUnit.cxx) ier initialized AdvApp2Var/AdvApp2Var_ApproxF2var.cxx FacRevolInfini initialized BRepFeat_MakePrism.cxx default action of "switch" returned nombre mas of chars was expanded to 1024 (had been 20). this expansion helps avoiding the error of conversion a float number to mas of chars: the size of mas is enough for converting float number now. Changed status (todo ?) of tests: de step_5 A6 B3, de iges_3 A9
This commit is contained in:
@@ -384,25 +384,18 @@ Standard_Integer OSD_Process :: ProcessId () {
|
||||
|
||||
OSD_Path OSD_Process :: CurrentDirectory () {
|
||||
|
||||
Standard_PCharacter pBuff;
|
||||
DWORD dwSize = 0;
|
||||
OSD_Path retVal;
|
||||
OSD_Path anCurrentDirectory;
|
||||
|
||||
dwSize = GetCurrentDirectory ( dwSize, pBuff );
|
||||
pBuff = new Standard_Character[ dwSize ];
|
||||
DWORD dwSize = PATHLEN + 1;
|
||||
Standard_PCharacter pBuff = new char[dwSize];
|
||||
|
||||
if ( ( dwSize = GetCurrentDirectory ( dwSize, pBuff ) ) == NULL )
|
||||
|
||||
_osd_wnt_set_error ( myError, OSD_WProcess );
|
||||
|
||||
else
|
||||
|
||||
retVal = OSD_Path ( pBuff );
|
||||
|
||||
delete[] pBuff;
|
||||
|
||||
return retVal;
|
||||
if ( GetCurrentDirectory(dwSize, pBuff) > 0 )
|
||||
anCurrentDirectory = OSD_Path ( pBuff );
|
||||
else
|
||||
_osd_wnt_set_error ( myError, OSD_WProcess );
|
||||
|
||||
delete[] pBuff;
|
||||
return anCurrentDirectory;
|
||||
} // end OSD_Process :: CurrentDirectory
|
||||
|
||||
void OSD_Process :: SetCurrentDirectory ( const OSD_Path& where ) {
|
||||
|
Reference in New Issue
Block a user