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

Function Ext2OEMToUnicode

Ext4Fsd/misc.c:205–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204
205NTSTATUS
206Ext2OEMToUnicode(
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
233errorout:
234
235 return Status;
236}
237
238ULONG
239Ext2UnicodeToOEMSize(

Callers 5

Ext2FillEntryFunction · 0.85
Ext2QueryDirectoryFunction · 0.85
Ext2GetReparsePointFunction · 0.85
Ext2InitializeLabelFunction · 0.85
Ext2FollowLinkFunction · 0.85

Calls 1

Ext2MbsToUnicodeFunction · 0.85

Tested by

no test coverage detected