@@ -84,7 +84,7 @@ CreateDisk(
8484}
8585
8686
87- BOOL
87+ EXIT_CODE
8888ConvertGPT (
8989 _In_ INT argc ,
9090 _In_ PWSTR * argv )
@@ -97,27 +97,27 @@ ConvertGPT(
9797 if (CurrentDisk == NULL )
9898 {
9999 ConResPuts (StdOut , IDS_SELECT_NO_DISK );
100- return TRUE ;
100+ return EXIT_SUCCESS ;
101101 }
102102
103103 if (CurrentDisk -> PartitionStyle == PARTITION_STYLE_GPT )
104104 {
105105 ConResPuts (StdOut , IDS_CONVERT_GPT_ALREADY );
106- return TRUE ;
106+ return EXIT_SUCCESS ;
107107 }
108108
109109 if (GetPrimaryPartitionCount (CurrentDisk ) != 0 )
110110 {
111111 ConResPuts (StdOut , IDS_CONVERT_GPT_NOT_EMPTY );
112- return TRUE ;
112+ return EXIT_SUCCESS ;
113113 }
114114
115115#if 0
116116 /* Fail if disk size is less than 128MB */
117117 if (CurrentDisk -> SectorCount .QuadPart * CurrentDisk -> BytesPerSector < 128ULL * 1024ULL * 1024ULL )
118118 {
119119 ConResPuts (StdOut , IDS_CONVERT_GPT_TOO_SMALL );
120- return TRUE ;
120+ return EXIT_SUCCESS ;
121121 }
122122#endif
123123
@@ -129,7 +129,7 @@ ConvertGPT(
129129 if (!NT_SUCCESS (Status ))
130130 {
131131 DPRINT1 ("CreateDisk() failed!\n" );
132- return TRUE ;
132+ return EXIT_SUCCESS ;
133133 }
134134
135135 CurrentDisk -> StartSector .QuadPart = AlignDown (CurrentDisk -> LayoutBuffer -> Gpt .StartingUsableOffset .QuadPart / CurrentDisk -> BytesPerSector ,
@@ -140,11 +140,11 @@ ConvertGPT(
140140 ScanForUnpartitionedGptDiskSpace (CurrentDisk );
141141 ConResPuts (StdOut , IDS_CONVERT_GPT_SUCCESS );
142142
143- return TRUE ;
143+ return EXIT_SUCCESS ;
144144}
145145
146146
147- BOOL
147+ EXIT_CODE
148148ConvertMBR (
149149 _In_ INT argc ,
150150 _In_ PWSTR * argv )
@@ -157,20 +157,20 @@ ConvertMBR(
157157 if (CurrentDisk == NULL )
158158 {
159159 ConResPuts (StdOut , IDS_SELECT_NO_DISK );
160- return TRUE ;
160+ return EXIT_SUCCESS ;
161161 }
162162
163163 if ((CurrentDisk -> PartitionStyle == PARTITION_STYLE_MBR ) ||
164164 (CurrentDisk -> PartitionStyle == PARTITION_STYLE_RAW ))
165165 {
166166 ConResPuts (StdOut , IDS_CONVERT_MBR_ALREADY );
167- return TRUE ;
167+ return EXIT_SUCCESS ;
168168 }
169169
170170 if (GetPrimaryPartitionCount (CurrentDisk ) != 0 )
171171 {
172172 ConResPuts (StdOut , IDS_CONVERT_MBR_NOT_EMPTY );
173- return TRUE ;
173+ return EXIT_SUCCESS ;
174174 }
175175
176176 DiskInfo .PartitionStyle = PARTITION_STYLE_MBR ;
@@ -180,7 +180,7 @@ ConvertMBR(
180180 if (!NT_SUCCESS (Status ))
181181 {
182182 DPRINT1 ("CreateDisk() failed!\n" );
183- return TRUE ;
183+ return EXIT_SUCCESS ;
184184 }
185185
186186 CurrentDisk -> StartSector .QuadPart = (ULONGLONG )CurrentDisk -> SectorAlignment ;
@@ -189,5 +189,5 @@ ConvertMBR(
189189 ScanForUnpartitionedMbrDiskSpace (CurrentDisk );
190190 ConResPuts (StdOut , IDS_CONVERT_MBR_SUCCESS );
191191
192- return TRUE ;
192+ return EXIT_SUCCESS ;
193193}
0 commit comments