File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ PPH_STRING PhpFormatSizeIfNonZero(
442
442
)
443
443
{
444
444
if (Size != 0 )
445
- return PhFormatSize (Size , 1 );
445
+ return PhFormatSize (Size , - 1 );
446
446
else
447
447
return NULL ;
448
448
}
@@ -700,7 +700,7 @@ BOOLEAN NTAPI PhpMemoryTreeNewCallback(
700
700
}
701
701
break ;
702
702
case PHMMTLC_SIZE :
703
- PhMoveReference (& node -> SizeText , PhFormatSize (memoryItem -> RegionSize , 1 ));
703
+ PhMoveReference (& node -> SizeText , PhFormatSize (memoryItem -> RegionSize , - 1 ));
704
704
getCellText -> Text = PhGetStringRef (node -> SizeText );
705
705
break ;
706
706
case PHMMTLC_PROTECTION :
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function CheckBaseDirectory()
50
50
if (! (Test-Path " ProcessHacker.sln" ))
51
51
{
52
52
Write-Host " Unable to find project directory... Exiting." - ForegroundColor Red
53
- exit 5 ;
53
+ exit 5
54
54
}
55
55
}
56
56
}
@@ -80,38 +80,42 @@ function BuildSolution([string] $FileName)
80
80
# Debug builds
81
81
& $msBuild " /m" ,
82
82
" /nologo" ,
83
+ " /nodemode:1" ,
84
+ " /nodeReuse:true" ,
83
85
" /verbosity:quiet" ,
84
86
" /p:Configuration=Debug" ,
85
87
" /p:Platform=Win32" ,
86
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
87
88
" /target:Rebuild" ,
88
89
" $FileName "
89
90
90
91
& $msBuild " /m" ,
91
92
" /nologo" ,
93
+ " /nodemode:1" ,
94
+ " /nodeReuse:true" ,
92
95
" /verbosity:quiet" ,
93
96
" /p:Configuration=Debug" ,
94
97
" /p:Platform=x64" ,
95
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
96
98
" /target:Rebuild" ,
97
99
" $FileName "
98
100
99
101
# Release builds
100
102
& $msBuild " /m" ,
101
103
" /nologo" ,
104
+ " /nodemode:1" ,
105
+ " /nodeReuse:true" ,
102
106
" /verbosity:quiet" ,
103
107
" /p:Configuration=Release" ,
104
108
" /p:Platform=Win32" ,
105
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
106
109
" /target:Rebuild" ,
107
110
" $FileName "
108
111
109
112
& $msBuild " /m" ,
110
113
" /nologo" ,
114
+ " /nodemode:1" ,
115
+ " /nodeReuse:true" ,
111
116
" /verbosity:quiet" ,
112
117
" /p:Configuration=Release" ,
113
118
" /p:Platform=x64" ,
114
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
115
119
" /target:Rebuild" ,
116
120
" $FileName "
117
121
@@ -122,6 +126,7 @@ function BuildSolution([string] $FileName)
122
126
else
123
127
{
124
128
Write-Host " `t`t [ERROR]" - ForegroundColor Red
129
+ exit 1
125
130
}
126
131
}
127
132
@@ -265,6 +270,7 @@ function BuildPublicHeaders()
265
270
else
266
271
{
267
272
Write-Host " `t`t [ERROR]" - ForegroundColor Red
273
+ exit 1
268
274
}
269
275
}
270
276
You can’t perform that action at this time.
0 commit comments