No need to call GetModuleFileName16 now that GetModuleFileNameA

handles 16-bit tasks.
This commit is contained in:
Alexandre Julliard 2002-07-05 01:28:10 +00:00
parent 83886f23fa
commit 7015ce3096
4 changed files with 4 additions and 8 deletions

View File

@ -154,8 +154,7 @@ inline static void setup_dsound_options(void)
ExitProcess(1);
}
if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) ||
GetModuleFileNameA( 0, buffer, MAX_PATH ))
if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
HKEY tmpkey;

View File

@ -196,8 +196,7 @@ static void setup_options(void)
/* open the app-specific key */
if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) ||
GetModuleFileNameA( 0, buffer, MAX_PATH ))
if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
HKEY tmpkey;
char *p, *appname = buffer;

View File

@ -381,8 +381,7 @@ static HKEY open_app_key( const char *module )
HKEY hkey, appkey;
char buffer[MAX_PATH+16], *appname;
if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) &&
!GetModuleFileNameA( 0, buffer, MAX_PATH ))
if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
WARN( "could not get module file name loading %s\n", module );
return 0;

View File

@ -278,8 +278,7 @@ static void VERSION_Init(void)
static BOOL init_done;
if (init_done) return;
if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) &&
!GetModuleFileNameA( 0, buffer, MAX_PATH ))
if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
WARN( "could not get module file name\n" );
return;