MCPcopy Create free account
hub / github.com/diasurgical/devilution / WReadFile

Function WReadFile

Source/wave.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void WReadFile(HANDLE hsFile, LPVOID buf, DWORD to_read, const char *FileName)
30{
31 if (SFileSetFilePointer(hsFile, 0, NULL, FILE_CURRENT) == -1)
32 FileErrDlg(FileName);
33
34 if (!SFileReadFile(hsFile, buf, to_read, NULL, NULL))
35 FileErrDlg(FileName);
36}
37
38DEVILUTION_END_NAMESPACE

Callers 3

LoadFileInMemFunction · 0.85
LoadFileWithMemFunction · 0.85
LoadPaletteFunction · 0.85

Calls 3

SFileSetFilePointerFunction · 0.85
FileErrDlgFunction · 0.85
SFileReadFileFunction · 0.85

Tested by

no test coverage detected