Removed wcslen

This commit is contained in:
zvon 2020-04-16 13:27:50 +02:00
parent 7f3231b062
commit dd6ead1268

View File

@ -340,7 +340,7 @@ void MainWindow::dbAdd() {
wchar_t path[MAX_PATH];
SendMessage( dir_input, WM_GETTEXT, ( WPARAM )MAX_PATH - 1,
( LPARAM )path );
if ( wcslen( path ) == 0 ) {
if ( path[0] == '\0' ) {
MessageBox( window, _( DIR_EMPTY ), _( ERROR ), MB_OK | MB_ICONERROR );
return;
}