aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/u3
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-04 00:53:03 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-04 00:53:03 +0000
commit3fb3edeca028f270c0ec1d9f5fa3ef8c9a755bdb (patch)
tree4db2506e8ca7f33dce7d976cad5893f878f3b05c /packaging/u3
parentc8703c3bd601831f2d7d0eafeebb492cb7bb80ed (diff)
Switch to WinPcap 4.0.1.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22237 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packaging/u3')
-rw-r--r--packaging/u3/win32/makefile.nmake2
-rw-r--r--packaging/u3/win32/u3util.c20
2 files changed, 11 insertions, 11 deletions
diff --git a/packaging/u3/win32/makefile.nmake b/packaging/u3/win32/makefile.nmake
index d5ec83a719..730276f26a 100644
--- a/packaging/u3/win32/makefile.nmake
+++ b/packaging/u3/win32/makefile.nmake
@@ -223,7 +223,7 @@ distribution: host-dirs device-dirs data-dirs manifest-dirs manifest.u3i u3util
$(COPY) $(TOPDIR)\epan\wslua\console.lua $(DEVICE) $(COPY_FLAGS)
$(COPY) $(TOPDIR)\epan\wslua\dtd_gen.lua $(DEVICE) $(COPY_FLAGS)
!ENDIF
- $(COPY) $(TOPDIR)\packaging\nsis\WinPcap_4_0.exe $(DEVICE) $(COPY_FLAGS)
+ $(COPY) $(TOPDIR)\packaging\nsis\WinPcap_4_0_1.exe $(DEVICE) $(COPY_FLAGS)
$(COPY) $(TOPDIR)\dfilter_macros $(DEVICE) $(COPY_FLAGS)
# host
#
diff --git a/packaging/u3/win32/u3util.c b/packaging/u3/win32/u3util.c
index 5f907c6034..283874de26 100644
--- a/packaging/u3/win32/u3util.c
+++ b/packaging/u3/win32/u3util.c
@@ -46,7 +46,7 @@
#define SHELL_OPEN_COMMAND "\\Shell\\open\\command"
#define DEFAULT_ICON "\\DefaultIcon"
-#define WINPCAP_PACKAGE "\\WinPcap_4_0.exe"
+#define WINPCAP_PACKAGE "\\WinPcap_4_0_1.exe"
#define WINPCAP_KEY "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\WinPcapInst"
#define WINPCAP_UNINSTALL "UninstallString"
#define WINPCAP_U3INSTALLED "U3Installed" /* indicate the U3 device that installed WinPcap */
@@ -324,9 +324,9 @@ void app_start(int argc, char *argv[])
buffer[0] = '\0';
strncat(buffer, argv[0], strlen(argv[0]) + 1);
-
+
/* truncate at last \\ */
- if(end = strrchr(buffer, '\\'))
+ if(end = strrchr(buffer, '\\'))
*end = '\0';
strncat(buffer, ENV_FILENAME, strlen(ENV_FILENAME) + 1);
@@ -344,7 +344,7 @@ void app_start(int argc, char *argv[])
while(end = strchr(envvar, '\n')) {
/* we have a line */
*end++ = '\0';
-
+
_putenv(envvar);
/* point the next envar to the end */
@@ -355,7 +355,7 @@ void app_start(int argc, char *argv[])
/* close the file */
CloseHandle(file);
- }
+ }
/* exec wireshark */
if((u3hostexecpath = getenv("U3_HOST_EXEC_PATH")) != NULL) {
@@ -363,7 +363,7 @@ void app_start(int argc, char *argv[])
buffer[0] = '\0';
strncat(buffer, u3hostexecpath, strlen(u3hostexecpath) + 1);
strncat(buffer, WIRESHARK_EXE, strlen(WIRESHARK_EXE) + 1);
-
+
/* copy the remaining arguments across */
for(i = 2; i < argc; i++) {
strncat(buffer, " ", 2);
@@ -469,7 +469,7 @@ BOOL save_environment()
if(envval = getenv(*envptr)) {
/* write it out */
-
+
buffer[0] = '\0';
strncat(buffer, *envptr, strlen(*envptr) + 1);
strncat(buffer, "=", 2);
@@ -480,15 +480,15 @@ BOOL save_environment()
WriteFile(file, buffer, buflen, &numWritten, NULL);
}
-
+
}
/* close the file */
CloseHandle(file);
-
+
retval = TRUE;
- }
+ }
return retval;