search for: format_message_ignore_inserts

Displaying 5 results from an estimated 5 matches for "format_message_ignore_inserts".

2006 Dec 17
0
FormatMessage issue in eventlog.rb - more clues
...uffer, I''m not sure. Now, consider this approach: int main(){ HMODULE hmod; int rv; char* message; char* dll = "C:\\WINDOWS\\system32\\mscoree.dll"; int flags = FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_HMODULE | FORMAT_MESSAGE_IGNORE_INSERTS; hmod = LoadLibraryEx(dll, 0, LOAD_LIBRARY_AS_DATAFILE); printf("HMOD: %i\n", hmod); rv = FormatMessage( flags, hmod, 0, 0, (LPSTR)&message, 0, NULL ); printf("RV: %i\n", rv); FreeLibrary(hmod);...
2012 May 04
0
[PATCH] add (errnum) in front of windows error messages
...+ b/lib/utils.c @@ -53,15 +53,17 @@ void bin2hex(char *src, char *dst, int length) { #endif const char *winerror(int err) { - static char buf[1024], *newline; + static char buf[1024], *ptr; + + ptr = buf + sprintf(buf, "(%d) ", err); if (!FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, sizeof(buf), NULL)) { - strncpy(buf, "(unable to format errormessage)", sizeof(buf)); + NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), ptr, sizeof(buf) - (ptr - buf), NULL)) { + strcpy(ptr, "(unabl...
2007 Dec 05
21
Fwd: win32/process problem
Any ideas? ---------- Forwarded message ---------- From: Christian Kerth <christian.ke... at dynamicmedia.at> Date: Dec 5, 8:28 am Subject: win32/process problem To: comp.lang.ruby I have an application that consists of serveral independent parts. I want to use the Windows Process API to spawn the different processes. e.g. require ''rubygems'' require
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary file around. The same is true for other llvm tools. As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and restart the run a few times. You will get t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff The same would happen if there was a fatal error between the
2010 May 07
0
Wine release 1.1.44
...rnel32: Remove leftover preprocessor undef directives in the FormatMessage implementation. kernel32: Improve flag error handling in FormatMessageA/W. kernel32: Correct output buffer behavior with empty input strings for FormatMessageA/W. kernel32: Handle some escape sequences with FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageA/W. kernel32/tests: Centralize the FormatMessageW skip detection. kernel32: Remove a superfluous function call in the format_insert helper. kernel32: Process CRLF escape sequences in normal insert sequence processing path in FormatMessageA/W. kernel32: Merge...