mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-07 00:59:14 -05:00
drivers bugfix Clang warning
This commit is contained in:
@@ -32,7 +32,7 @@ std::wstring FsPrivate::getModuleFileName(const HMODULE handle)
|
||||
1024 value is from the boost::dll::fs::path path_from_handle() so if it's
|
||||
good for boost then it's good for TinyORM. I will not decrease this. */
|
||||
for (quint16 i = 2; i <= 1024 && lastError == ERROR_INSUFFICIENT_BUFFER; i *= 2) {
|
||||
const auto bufferSize = MAX_PATH * i;
|
||||
const DWORD bufferSize = MAX_PATH * i;
|
||||
std::wstring moduleFilepath(bufferSize, L'\0');
|
||||
|
||||
const auto realSize = ::GetModuleFileNameW(handle, moduleFilepath.data(),
|
||||
|
||||
Reference in New Issue
Block a user