Skip to content

Commit

Permalink
version info in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sorbo committed Jul 22, 2014
1 parent 88d84df commit 6fb8bc5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions contrib/winlauncher/tcpcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <devguid.h>

#include "resource.h"
#include "../../user/src/tcpcrypt_version.h"

#define COBJMACROS

Expand Down Expand Up @@ -271,7 +272,13 @@ static void setup_icons(void)

static void do_init(void)
{
char title[1024];

setup_icons();

snprintf(title, sizeof(title), "tcpcrypt v%s", TCPCRYPT_VERSION);

SetWindowText(_hwnd, title);
}

static void hof(void)
Expand Down
3 changes: 1 addition & 2 deletions user/src/tcpcrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

#include <tcpcrypt/tcpcrypt.h>
#include "tcpcrypt_ctl.h"

#define TCPCRYPT_VERSION "0.2"
#include "tcpcrypt_version.h"

#define TC_DUMMY 0x69

Expand Down
6 changes: 6 additions & 0 deletions user/src/tcpcrypt_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef __SRC_TCPCRYPT_VERSION_H__
#define __SRC_TCPCRYPT_VERSION_H__

#define TCPCRYPT_VERSION "0.2"

#endif /* __SRC_TCPCRYPT_VERSION_H__ */

0 comments on commit 6fb8bc5

Please sign in to comment.