/[winpt]/trunk/Src/wptKeygenCBDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptKeygenCBDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 332 by twoaday, Sun May 7 12:36:48 2006 UTC revision 333 by twoaday, Tue Oct 13 10:51:21 2009 UTC
# Line 13  Line 13 
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.   * GNU General Public License for more details.
15   *   *
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  
16   */   */
17  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
18  #include <config.h>  #include <config.h>
# Line 98  keygen_cb (void *opaque, const char *wha Line 95  keygen_cb (void *opaque, const char *wha
95      static int cb_pos = 0;      static int cb_pos = 0;
96            
97      if (!opaque && !what && !type && !curretn && !total) {      if (!opaque && !what && !type && !curretn && !total) {
98          memset (cb, 0, sizeof cb);          memset (cb, 0, sizeof (cb));
99          cb_pos = 0;          cb_pos = 0;
100          return;          return;
101      }      }
# Line 112  keygen_cb (void *opaque, const char *wha Line 109  keygen_cb (void *opaque, const char *wha
109      cb[cb_pos] = '\0';      cb[cb_pos] = '\0';
110            
111      SetDlgItemText (dlg_hwnd, IDC_KEYPROG_CB, cb);      SetDlgItemText (dlg_hwnd, IDC_KEYPROG_CB, cb);
112        if (GetForegroundWindow () != dlg_hwnd)
113            SetForegroundWindow (dlg_hwnd);
114  }  }
115    
116    

Legend:
Removed from v.332  
changed lines
  Added in v.333

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26