VirtualBox

Changeset 153 in kBuild for branches/GNU/src/gmake/w32


Ignore:
Timestamp:
Sep 8, 2004 2:43:30 AM (21 years ago)
Author:
bird
Message:

GNU Make 3.81beta1.

Location:
branches/GNU/src/gmake/w32/subproc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/w32/subproc/sub_proc.c

    r53 r153  
    11941194  if (process_begin(hProcess, argv, envp, argv[0], NULL)) {
    11951195    fake_exits_pending++;
     1196    /* process_begin() failed: make a note of that.  */
     1197    if (!((sub_process*) hProcess)->last_err)
     1198      ((sub_process*) hProcess)->last_err = -1;
    11961199    ((sub_process*) hProcess)->exit_code = process_last_err(hProcess);
    11971200
  • branches/GNU/src/gmake/w32/subproc/w32err.c

    r53 r153  
    77 * Returns:  a pointer to a static error
    88 *
    9  * Notes/Dependencies:  I got this from 
     9 * Notes/Dependencies:  I got this from
    1010 *      comp.os.ms-windows.programmer.win32
    1111 */
    12 char * 
     12char *
    1313map_windows32_error_to_string (DWORD ercode) {
    1414/* __declspec (thread) necessary if you will use multiple threads */
    1515__declspec (thread) static char szMessageBuffer[128];
    16  
    17         /* Fill message buffer with a default message in 
    18          * case FormatMessage fails 
     16
     17        /* Fill message buffer with a default message in
     18         * case FormatMessage fails
    1919         */
    20     wsprintf (szMessageBuffer, "Error %ld", ercode);
     20    wsprintf (szMessageBuffer, "Error %ld\n", ercode);
    2121
    2222        /*
     
    3434                                NULL);
    3535                        FreeLibrary(hModule);
    36                 } 
     36                }
    3737        } else {
    3838                /*
     
    4949    return szMessageBuffer;
    5050}
    51  
     51
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette