Removed wcslen
This commit is contained in:
parent
7f3231b062
commit
dd6ead1268
@ -340,7 +340,7 @@ void MainWindow::dbAdd() {
|
|||||||
wchar_t path[MAX_PATH];
|
wchar_t path[MAX_PATH];
|
||||||
SendMessage( dir_input, WM_GETTEXT, ( WPARAM )MAX_PATH - 1,
|
SendMessage( dir_input, WM_GETTEXT, ( WPARAM )MAX_PATH - 1,
|
||||||
( LPARAM )path );
|
( LPARAM )path );
|
||||||
if ( wcslen( path ) == 0 ) {
|
if ( path[0] == '\0' ) {
|
||||||
MessageBox( window, _( DIR_EMPTY ), _( ERROR ), MB_OK | MB_ICONERROR );
|
MessageBox( window, _( DIR_EMPTY ), _( ERROR ), MB_OK | MB_ICONERROR );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user