summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/texlive/w32_wrapper/tl-tray-menu.c4
-rwxr-xr-xMaster/tl-tray-menu.exebin59392 -> 59392 bytes
2 files changed, 1 insertions, 3 deletions
diff --git a/Build/source/texk/texlive/w32_wrapper/tl-tray-menu.c b/Build/source/texk/texlive/w32_wrapper/tl-tray-menu.c
index c2132f6726d..fe65d54515a 100644
--- a/Build/source/texk/texlive/w32_wrapper/tl-tray-menu.c
+++ b/Build/source/texk/texlive/w32_wrapper/tl-tray-menu.c
@@ -20,11 +20,9 @@ gcc -Os -s -mwindows -o tl-tray-menu.exe tl-tray-menu-rc.o tl-tray-menu.c
#define MAX_STR 32768
-DWORD errCode;
static char strBuf[MAX_STR];
#define DIE(...) { \
- errCode = GetLastError(); \
_snprintf( strBuf, 4*MAX_PATH, __VA_ARGS__ ); \
MessageBox( NULL, strBuf, "ERROR!", MB_ICONERROR | MB_SETFOREGROUND );\
return 1; \
@@ -137,7 +135,7 @@ LRESULT CALLBACK WndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam )
&si, // STARTUPINFO structure
&pi ) // PROCESS_INFORMATION structure
) DIE( "Failed to spawn command (error code %d):\n%s",
- errCode, menuCommands[LOWORD(wParam)] );
+ GetLastError(), menuCommands[LOWORD(wParam)] );
}
}
}
diff --git a/Master/tl-tray-menu.exe b/Master/tl-tray-menu.exe
index e5f5eb3d75d..cb188b37758 100755
--- a/Master/tl-tray-menu.exe
+++ b/Master/tl-tray-menu.exe
Binary files differ