diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-11-05 21:11:48 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-11-05 21:11:48 +0000 |
commit | 048aaf0c4e77402adf584e3318e5aae6f1cdd749 (patch) | |
tree | def343da80e282ae43164e45e672a1386db66546 /plugins/!NotAdopted/Xfire/xfiretest/pwd_dlg.cpp | |
parent | 35a9af527f9b7ec35e81455784cd0a795be910c5 (diff) |
XFire adoption (crashes on login, no 64bit)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/Xfire/xfiretest/pwd_dlg.cpp')
-rw-r--r-- | plugins/!NotAdopted/Xfire/xfiretest/pwd_dlg.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/plugins/!NotAdopted/Xfire/xfiretest/pwd_dlg.cpp b/plugins/!NotAdopted/Xfire/xfiretest/pwd_dlg.cpp deleted file mode 100644 index e2668b96d7..0000000000 --- a/plugins/!NotAdopted/Xfire/xfiretest/pwd_dlg.cpp +++ /dev/null @@ -1,53 +0,0 @@ -//fürs nick - dialog
-
-#include "stdafx.h"
-#include "pwd_dlg.h"
-
-char password[256]="";
-
-BOOL CALLBACK DlgPwProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
-{
- switch (msg)
- {
- case WM_INITDIALOG:
- {
- SetWindowText(hwndDlg, "Please enter server password ...");
- TranslateDialogDefault(hwndDlg);
- SendMessage(hwndDlg,WM_SETICON, (WPARAM)false, (LPARAM)LoadIcon(hinstance, MAKEINTRESOURCE(IDI_TM)));
- return TRUE;
- }
- case WM_COMMAND:
- {
- if(LOWORD(wParam) == IDOK)
- {
- GetDlgItemText(hwndDlg,IDC_NICKNAME,password,sizeof(password));
- EndDialog(hwndDlg,TRUE);
- return TRUE;
- }
- else if(LOWORD(wParam) == IDCANCEL)
- {
- EndDialog(hwndDlg,FALSE);
- return FALSE;
- }
- }
- }
- return FALSE;
-}
-
-BOOL ShowPwdDlg(char* pw) {
- //kein gültiges ziel für das eingegebene passwort
- if(&pw==NULL)
- return FALSE;
-
- if(DialogBox(hinstance,MAKEINTRESOURCE(IDD_SETNICKNAME),NULL,DlgPwProc))
- {
- //passwort kopieren
- if(*password == 0)
- return FALSE;
-
- strcpy_s(pw,255,password);
- return TRUE;
- }
-
- return FALSE;
-}
\ No newline at end of file |