MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / IsRemovable

Function IsRemovable

Libraries/unrar/filefn.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131bool IsRemovable(const wchar *Name)
132{
133#if defined(_WIN_ALL)
134 wchar Root[NM];
135 GetPathRoot(Name,Root,ASIZE(Root));
136 int Type=GetDriveType(*Root!=0 ? Root:NULL);
137 return Type==DRIVE_REMOVABLE || Type==DRIVE_CDROM;
138#else
139 return false;
140#endif
141}
142
143
144#ifndef SFX_MODULE

Callers 1

MergeArchiveFunction · 0.85

Calls 1

GetPathRootFunction · 0.85

Tested by

no test coverage detected