diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2011-06-24 22:19:51 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2011-06-24 22:19:51 +0000 |
commit | 0da8e26ce2ebc18759b13163709c0a0903308c35 (patch) | |
tree | a0ed0dbabfe744e89c3405601cbae0dfead13a9a /Build/source/texk | |
parent | 555cc2bb46278f218559acf94458190767d5b98b (diff) |
no need to store error code
git-svn-id: svn://tug.org/texlive/trunk@23127 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/texlive/w32_wrapper/tl-tray-menu.c | 4 |
1 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)] ); } } } |