Skip to content

Commit

Permalink
Deprecated function stopped working in 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBrest committed Jun 25, 2024
1 parent 88f2f68 commit bb045d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dlls/winemac.drv/cocoa_app.m
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ - (void) transformProcessToForeground:(BOOL)activateIfTransformed
/* Whisky hack #9 */
// Set application name
NSString* appName = [NSString stringWithFormat:kAppNameText, self.applicationName];
NSLog(@"Setting process name to %@", appName);
bool success = [self setProcessName:appName];
if (!success)
NSLog(@"Failed to set process name to %@", appName);
Expand Down Expand Up @@ -904,7 +905,6 @@ typedef OSStatus (*LSSetApplicationInformationItemType)(
NSLog(@"setProcessName: Failed to get _LSSetApplicationInformationItem in LaunchServices");
return false;
}

// Get the display name key
const CFStringRef* displayNameKey = (const CFStringRef*)(
CFBundleGetDataPointerForName(launchServicesBundle, CFSTR("_kLSDisplayNameKey"))
Expand All @@ -914,10 +914,8 @@ typedef OSStatus (*LSSetApplicationInformationItemType)(
NSLog(@"setProcessName: Failed to get _kLSDisplayNameKey in LaunchServices");
return false;
}

// Force symbols to be loaded in the LaunchServices framework
ProcessSerialNumber psn = {0, kCurrentProcess};
GetCurrentProcess(&psn);
ColorSyncCMMGetTypeID();
}

// If any of the function pointers are NULL, we can't continue
Expand Down

0 comments on commit bb045d7

Please sign in to comment.