comdlg32: Fixed bad size to GetModuleFilenameW.
This commit is contained in:
parent
2c91ccede6
commit
5b09820d7c
|
@ -2070,7 +2070,7 @@ static void FILEDLG95_MRU_save_filename(LPCWSTR filename)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
|
|
||||||
/* get the current executable's name */
|
/* get the current executable's name */
|
||||||
if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path))){
|
if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path)/sizeof(module_path[0]))) {
|
||||||
WARN("GotModuleFileName failed: %d\n", GetLastError());
|
WARN("GotModuleFileName failed: %d\n", GetLastError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2157,7 +2157,7 @@ static void FILEDLG95_MRU_load_filename(LPWSTR stored_path)
|
||||||
WCHAR module_path[MAX_PATH], *module_name;
|
WCHAR module_path[MAX_PATH], *module_name;
|
||||||
|
|
||||||
/* get the current executable's name */
|
/* get the current executable's name */
|
||||||
if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path))){
|
if(!GetModuleFileNameW(GetModuleHandleW(NULL), module_path, sizeof(module_path)/sizeof(module_path[0]))) {
|
||||||
WARN("GotModuleFileName failed: %d\n", GetLastError());
|
WARN("GotModuleFileName failed: %d\n", GetLastError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue