Rev 188 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 188 | Rev 190 | ||
---|---|---|---|
Line 938... | Line 938... | ||
938 | ShellExecuteEx (&bugreport_shinfo); |
938 | ShellExecuteEx (&bugreport_shinfo); |
939 | WaitForSingleObject (bugreport_shinfo.hProcess, INFINITE); |
939 | WaitForSingleObject (bugreport_shinfo.hProcess, INFINITE); |
940 | CloseHandle (bugreport_shinfo.hProcess); |
940 | CloseHandle (bugreport_shinfo.hProcess); |
941 | 941 | ||
942 | // get a hand on the error description file and read its contents |
942 | // get a hand on the error description file and read its contents |
943 | Buffer_Initialize (&description_buffer); |
- | |
944 | if (Buffer_ReadFromFileW (&temp_buffer, descriptionfile_pathname)) |
943 | if (Buffer_ReadFromFileW (&temp_buffer, descriptionfile_pathname)) |
945 | { |
944 | { |
- | 945 | // if the user supplied no PR at all, don't bother sending anything |
|
- | 946 | if (Buffer_Compare (&temp_buffer, &description_buffer) == 0) |
|
- | 947 | return (true); // user didn't bother to supply anything, just lie to the fucktard. Yeah yeah, his PR was sent, etc etc. |
|
- | 948 | ||
- | 949 | Buffer_Initialize (&description_buffer); |
|
946 | description_buffer.data = (char *) malloc (temp_buffer.size); // necessarily less |
950 | description_buffer.data = (char *) malloc (temp_buffer.size); // necessarily less |
947 | description_buffer.size = ConvertTo7BitASCII (description_buffer.data, temp_buffer.size, (wchar_t *) temp_buffer.data); |
951 | description_buffer.size = ConvertTo7BitASCII (description_buffer.data, temp_buffer.size, (wchar_t *) temp_buffer.data); |
948 | } |
952 | } |
949 | else |
953 | else |
950 | { |
954 | { |
- | 955 | Buffer_Initialize (&description_buffer); |
|
951 | Buffer_AppendCString (&description_buffer, "Couldn't open error description file at \""); |
956 | Buffer_AppendCString (&description_buffer, "Couldn't open error description file at \""); |
952 | ConvertTo7BitASCII (temp_string, sizeof (temp_string), descriptionfile_pathname); Buffer_AppendCString (&description_buffer, temp_string); |
957 | ConvertTo7BitASCII (temp_string, sizeof (temp_string), descriptionfile_pathname); Buffer_AppendCString (&description_buffer, temp_string); |
953 | Buffer_AppendCString (&description_buffer, "\".\n"); |
958 | Buffer_AppendCString (&description_buffer, "\".\n"); |
954 | } |
959 | } |
955 | } |
960 | } |