MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2UnicodeToOEM

Function Ext2UnicodeToOEM

Ext4Fsd/misc.c:260–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259
260NTSTATUS
261Ext2UnicodeToOEM (
262 IN PEXT2_VCB Vcb,
263 IN OUT POEM_STRING Oem,
264 IN PUNICODE_STRING Unicode)
265{
266 NTSTATUS Status;
267
268 if (Vcb->Codepage.PageTable) {
269
270 Status = Ext2UnicodeToMbs(Vcb->Codepage.PageTable,
271 Oem, Unicode);
272 if (Status > 0 && Status == Oem->Length) {
273 Status = STATUS_SUCCESS;
274 } else {
275 Status = STATUS_UNSUCCESSFUL;
276 DbgBreak();
277 }
278
279 goto errorout;
280 }
281
282 Status = RtlUnicodeStringToOemString(
283 Oem, Unicode, FALSE );
284
285 if (!NT_SUCCESS(Status))
286 {
287 DbgBreak();
288 goto errorout;
289 }
290
291errorout:
292
293 return Status;
294}
295
296VOID
297Ext2Sleep(ULONG ms)

Callers 3

Ext2SetVolumeInformationFunction · 0.85
Ext2SetReparsePointFunction · 0.85
Ext2BuildEntryFunction · 0.85

Calls 1

Ext2UnicodeToMbsFunction · 0.85

Tested by

no test coverage detected