Commit 9bf3355a authored by Andre Wisplinghoff's avatar Andre Wisplinghoff Committed by Alexandre Julliard

winecfg: Enable add button when choosing lib from combobox (Libraries tabsheet).

parent c9f5f2c6
...@@ -408,10 +408,14 @@ static void init_libsheet(HWND dialog) ...@@ -408,10 +408,14 @@ static void init_libsheet(HWND dialog)
static void on_add_combo_change(HWND dialog) static void on_add_combo_change(HWND dialog)
{ {
char buffer[1024]; char buffer[1024];
int sel, len;
SendDlgItemMessage(dialog, IDC_DLLCOMBO, WM_GETTEXT, sizeof(buffer), (LPARAM) buffer); SendDlgItemMessage(dialog, IDC_DLLCOMBO, WM_GETTEXT, sizeof(buffer), (LPARAM) buffer);
/* if lib was chosen from combobox, we reveive an empty buffer, check manually */
sel=SendDlgItemMessage(dialog, IDC_DLLCOMBO, CB_GETCURSEL, 0, 0);
len=SendDlgItemMessage(dialog, IDC_DLLCOMBO, CB_GETLBTEXTLEN, sel, 0);
if (strlen(buffer)) if (strlen(buffer)>0 || len>0)
enable(IDC_DLLS_ADDDLL) enable(IDC_DLLS_ADDDLL)
else else
disable(IDC_DLLS_ADDDLL); disable(IDC_DLLS_ADDDLL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment