diff options
author | Mykhaylo Yehorov <yehorov@gmail.com> | 2016-05-04 12:27:52 +0300 |
---|---|---|
committer | Mykhaylo Yehorov <yehorov@gmail.com> | 2016-05-04 12:27:52 +0300 |
commit | 03ffd7535ac3ecb0b5985ab919ed3f50fa6aa7dd (patch) | |
tree | e7f8fb32a7c8325deffbdb012fed7b4c7b334949 /src/Cedar/SM.c | |
parent | 698babf408789fc74a9ee5fbc693beff7ad01bef (diff) | |
parent | 1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a (diff) |
merge upstream v4.21-9613-beta
Diffstat (limited to 'src/Cedar/SM.c')
-rw-r--r-- | src/Cedar/SM.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/Cedar/SM.c b/src/Cedar/SM.c index 405ef509..a45213b4 100644 --- a/src/Cedar/SM.c +++ b/src/Cedar/SM.c @@ -16557,6 +16557,11 @@ void SmSaveKeyPairDlgInit(HWND hWnd, SM_SAVE_KEY_PAIR *s) Check(hWnd, R_X509_AND_KEY, true);
}
+ if (MsIsWine())
+ {
+ Disable(hWnd, R_SECURE);
+ }
+
SmSaveKeyPairDlgUpdate(hWnd, s);
}
@@ -19350,8 +19355,13 @@ ENTER_PASSWORD: Enable(hWnd, IDOK);
Enable(hWnd, B_ABOUT);
Enable(hWnd, IDCANCEL);
- Enable(hWnd, B_SECURE_MANAGER);
- Enable(hWnd, B_SELECT_SECURE);
+
+ if (MsIsWine() == false)
+ {
+ Enable(hWnd, B_SECURE_MANAGER);
+ Enable(hWnd, B_SELECT_SECURE);
+ }
+
Enable(hWnd, B_CERT_TOOL);
}
@@ -20150,6 +20160,12 @@ void SmMainDlgInit(HWND hWnd) DlgFont(hWnd, IDOK, 10, true);
+ if (MsIsWine())
+ {
+ Disable(hWnd, B_SECURE_MANAGER);
+ Disable(hWnd, B_SELECT_SECURE);
+ }
+
Focus(hWnd, L_SETTING);
SmMainDlgUpdate(hWnd);
@@ -20479,6 +20495,8 @@ void SmMainDlg() // Server Manager main process
void MainSM()
{
+// MsgBoxEx(NULL, 0, L"MsIsWine: %u\n", MsIsWine());
+
if (sm->TempSetting == NULL)
{
// Open the main window
|