| 203 | |
| 204 | |
| 205 | NTSTATUS |
| 206 | Ext2OEMToUnicode( |
| 207 | IN PEXT2_VCB Vcb, |
| 208 | IN OUT PUNICODE_STRING Unicode, |
| 209 | IN POEM_STRING Oem |
| 210 | ) |
| 211 | { |
| 212 | NTSTATUS Status; |
| 213 | |
| 214 | |
| 215 | if (Vcb->Codepage.PageTable) { |
| 216 | Status = Ext2MbsToUnicode(Vcb->Codepage.PageTable, |
| 217 | Unicode, Oem); |
| 218 | |
| 219 | if (Status >0 && Status == Unicode->Length) { |
| 220 | Status = STATUS_SUCCESS; |
| 221 | goto errorout; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | Status = RtlOemStringToUnicodeString( |
| 226 | Unicode, Oem, FALSE ); |
| 227 | |
| 228 | if (!NT_SUCCESS(Status)) { |
| 229 | DbgBreak(); |
| 230 | goto errorout; |
| 231 | } |
| 232 | |
| 233 | errorout: |
| 234 | |
| 235 | return Status; |
| 236 | } |
| 237 | |
| 238 | ULONG |
| 239 | Ext2UnicodeToOEMSize( |
no test coverage detected