No need to call GetModuleFileName16 now that GetModuleFileNameA
handles 16-bit tasks.
This commit is contained in:
parent
83886f23fa
commit
7015ce3096
|
@ -154,8 +154,7 @@ inline static void setup_dsound_options(void)
|
||||||
ExitProcess(1);
|
ExitProcess(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) ||
|
if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
||||||
GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
|
||||||
{
|
{
|
||||||
HKEY tmpkey;
|
HKEY tmpkey;
|
||||||
|
|
||||||
|
|
|
@ -196,8 +196,7 @@ static void setup_options(void)
|
||||||
|
|
||||||
/* open the app-specific key */
|
/* open the app-specific key */
|
||||||
|
|
||||||
if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) ||
|
if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
||||||
GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
|
||||||
{
|
{
|
||||||
HKEY tmpkey;
|
HKEY tmpkey;
|
||||||
char *p, *appname = buffer;
|
char *p, *appname = buffer;
|
||||||
|
|
|
@ -381,8 +381,7 @@ static HKEY open_app_key( const char *module )
|
||||||
HKEY hkey, appkey;
|
HKEY hkey, appkey;
|
||||||
char buffer[MAX_PATH+16], *appname;
|
char buffer[MAX_PATH+16], *appname;
|
||||||
|
|
||||||
if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) &&
|
if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
||||||
!GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
|
||||||
{
|
{
|
||||||
WARN( "could not get module file name loading %s\n", module );
|
WARN( "could not get module file name loading %s\n", module );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -278,8 +278,7 @@ static void VERSION_Init(void)
|
||||||
static BOOL init_done;
|
static BOOL init_done;
|
||||||
|
|
||||||
if (init_done) return;
|
if (init_done) return;
|
||||||
if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) &&
|
if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
||||||
!GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
|
||||||
{
|
{
|
||||||
WARN( "could not get module file name\n" );
|
WARN( "could not get module file name\n" );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue