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

Function Ext2OEMToUnicodeSize

Ext4Fsd/misc.c:182–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182ULONG
183Ext2OEMToUnicodeSize(
184 IN PEXT2_VCB Vcb,
185 IN PANSI_STRING Oem
186)
187{
188 ULONG Length = 0;
189
190 if (Vcb->Codepage.PageTable) {
191 Length = Ext2MbsToUnicode(Vcb->Codepage.PageTable, NULL, Oem);
192 if (Length > 0) {
193 goto errorout;
194 }
195 }
196
197 Length = RtlOemStringToCountedUnicodeSize(Oem);
198
199errorout:
200
201 return Length;
202}
203
204
205NTSTATUS

Callers 4

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

Calls 1

Ext2MbsToUnicodeFunction · 0.85

Tested by

no test coverage detected