MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / get_base_drive_letter

Method get_base_drive_letter

libcppcryptfs/config/cryptconfig.cpp:588–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588WCHAR CryptConfig::get_base_drive_letter()
589{
590 const WCHAR *p = &this->m_basedir[0];
591
592 while (*p && *p != ':')
593 p++;
594
595 if (p > &this->m_basedir[0] && *p == ':') {
596 return *(p - 1);
597 }
598 else {
599 return 0;
600 }
601}
602
603bool CryptConfig::check_config(wstring& mes)
604{

Callers 2

mount_crypt_fsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected