diff options
| -rw-r--r-- | src/w32.c | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -113,7 +113,7 @@ extern int w32_num_mouse_buttons; | |||
| 113 | 113 | ||
| 114 | 114 | ||
| 115 | /* | 115 | /* |
| 116 | Initialization states | 116 | Initialization states |
| 117 | */ | 117 | */ |
| 118 | static BOOL g_b_init_is_windows_9x; | 118 | static BOOL g_b_init_is_windows_9x; |
| 119 | static BOOL g_b_init_open_process_token; | 119 | static BOOL g_b_init_open_process_token; |
| @@ -1155,7 +1155,9 @@ init_environment (char ** argv) | |||
| 1155 | { | 1155 | { |
| 1156 | int dont_free = 0; | 1156 | int dont_free = 0; |
| 1157 | 1157 | ||
| 1158 | if ((lpval = w32_get_resource (env_vars[i].name, &dwType)) == NULL) | 1158 | if ((lpval = w32_get_resource (env_vars[i].name, &dwType)) == NULL |
| 1159 | /* Also ignore empty environment variables. */ | ||
| 1160 | || *lpval == 0) | ||
| 1159 | { | 1161 | { |
| 1160 | lpval = env_vars[i].def_value; | 1162 | lpval = env_vars[i].def_value; |
| 1161 | dwType = REG_EXPAND_SZ; | 1163 | dwType = REG_EXPAND_SZ; |
| @@ -2526,7 +2528,7 @@ stat (const char * path, struct stat * buf) | |||
| 2526 | != INVALID_HANDLE_VALUE) | 2528 | != INVALID_HANDLE_VALUE) |
| 2527 | { | 2529 | { |
| 2528 | /* This is more accurate in terms of gettting the correct number | 2530 | /* This is more accurate in terms of gettting the correct number |
| 2529 | of links, but is quite slow (it is noticable when Emacs is | 2531 | of links, but is quite slow (it is noticeable when Emacs is |
| 2530 | making a list of file name completions). */ | 2532 | making a list of file name completions). */ |
| 2531 | BY_HANDLE_FILE_INFORMATION info; | 2533 | BY_HANDLE_FILE_INFORMATION info; |
| 2532 | 2534 | ||
| @@ -3011,7 +3013,7 @@ struct { | |||
| 3011 | WSAEINVALIDPROCTABLE , "Invalid procedure table from service provider", | 3013 | WSAEINVALIDPROCTABLE , "Invalid procedure table from service provider", |
| 3012 | WSAEINVALIDPROVIDER , "Invalid service provider version number", | 3014 | WSAEINVALIDPROVIDER , "Invalid service provider version number", |
| 3013 | WSAEPROVIDERFAILEDINIT , "Unable to initialize a service provider", | 3015 | WSAEPROVIDERFAILEDINIT , "Unable to initialize a service provider", |
| 3014 | WSASYSCALLFAILURE , "System call failured", | 3016 | WSASYSCALLFAILURE , "System call failure", |
| 3015 | WSASERVICE_NOT_FOUND , "Service not found", /* not sure */ | 3017 | WSASERVICE_NOT_FOUND , "Service not found", /* not sure */ |
| 3016 | WSATYPE_NOT_FOUND , "Class type not found", | 3018 | WSATYPE_NOT_FOUND , "Class type not found", |
| 3017 | WSA_E_NO_MORE , "No more resources available", /* really not sure */ | 3019 | WSA_E_NO_MORE , "No more resources available", /* really not sure */ |
| @@ -4210,7 +4212,7 @@ globals_of_w32 () | |||
| 4210 | SetConsoleCtrlHandler(shutdown_handler, TRUE); | 4212 | SetConsoleCtrlHandler(shutdown_handler, TRUE); |
| 4211 | } | 4213 | } |
| 4212 | 4214 | ||
| 4213 | /* end of nt.c */ | 4215 | /* end of w32.c */ |
| 4214 | 4216 | ||
| 4215 | /* arch-tag: 90442dd3-37be-482b-b272-ac752e3049f1 | 4217 | /* arch-tag: 90442dd3-37be-482b-b272-ac752e3049f1 |
| 4216 | (do not change this comment) */ | 4218 | (do not change this comment) */ |